Merge pull request #3178 from andrewvc/patch-1

Support _.property in lodash.d.ts
This commit is contained in:
Masahiro Wakame
2014-11-20 11:56:14 +09:00

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 {