From 13f2ff5f3ff40bf2e8764cee3fc3d4eb2e3a2c57 Mon Sep 17 00:00:00 2001 From: basarat Date: Wed, 7 Aug 2013 10:27:50 +1000 Subject: [PATCH] Based on http://underscorejs.org/ and the test ``` var x = [ {value:123},{value:456}]; _.pluck(x,'value') ``` returns [123, 456] --- underscore/underscore.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/underscore/underscore.d.ts b/underscore/underscore.d.ts index 14bca77966..5c74f7ae1c 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -368,11 +368,11 @@ declare module _ { * property values. * @param list The list to pluck elements out of that have the property `propertyName`. * @param propertyName The property to look for on each element within `list`. - * @return The list of elements within `list` that have the property `propertyName`. + * @return The list of values for `propertyName` for each element within `list` **/ export function pluck( list: Collection, - propertyName: string): T[]; + propertyName: string): any[]; /** * Returns the maximum value in list. @@ -2852,4 +2852,4 @@ interface _Chain { declare module "underscore" { export = _; -} \ No newline at end of file +}