From 46120dcb686d5aef967faf6e03810535b525b92a Mon Sep 17 00:00:00 2001 From: Andrew Cholakian Date: Wed, 19 Nov 2014 17:31:54 -0600 Subject: [PATCH] Support _.property in lodash.d.ts --- lodash/lodash.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 93c6b6ee44..dfa5e2e6a0 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -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(key: string): (obj: T) => RT; + } //_.random interface LoDashStatic {