Merge pull request #26632 from mfeckie/fix/explicit-null-in-iterator

Allow any comparison type for rejectBy
This commit is contained in:
Nathan Shively-Sanders
2018-06-18 09:53:51 -07:00
committed by GitHub
+1 -1
View File
@@ -1173,7 +1173,7 @@ declare module 'ember' {
* key. You can pass an optional second argument with the target value. Otherwise
* this will match any property that evaluates to false.
*/
rejectBy(key: string, value?: string): NativeArray<T>;
rejectBy(key: string, value?: any): NativeArray<T>;
/**
* Returns the first item in the array for which the callback returns true.
* This method works similar to the `filter()` method defined in JavaScript 1.6