Merge pull request #12666 from asurinov/master

[underscore] Fixed _.findKey return type. Added overload with List<T> for…
This commit is contained in:
Paul van Brenk
2016-11-30 14:15:19 -08:00
committed by GitHub
+2 -2
View File
@@ -3670,8 +3670,8 @@ interface UnderscoreStatic {
* @param predicate Predicate function.
* @param context `this` object in `iterator`, optional.
*/
findKey<T>(obj: _.Dictionary<T>, predicate: _.ObjectIterator<T, boolean>, context? : any): T
findKey<T>(obj: _.Dictionary<T>, predicate: _.ObjectIterator<T, boolean>, context? : any): string;
/**
* Return a copy of the object, filtered to only have values for the whitelisted keys
* (or array of valid keys).