Support _.property in lodash.d.ts

This commit is contained in:
Andrew Cholakian
2014-11-19 17:31:54 -06:00
parent 7c194584f3
commit 46120dcb68

12
lodash/lodash.d.ts vendored
View File

@@ -6179,6 +6179,18 @@ declare module _ {
**/
parseInt(value: string): number;
}
//_.property
interface LoDashStatic {
/**
* # Ⓢ
* Creates a "_.pluck" style function, which returns the key value of a given object.
* @param key (string)
* @return the value of that key on the object
**/
property<T,RT>(key: string): (obj: T) => RT;
}
//_.random
interface LoDashStatic {