From 685e52414a26f2a456f3a8dfd6047746fe9e1f74 Mon Sep 17 00:00:00 2001 From: basarat Date: Sun, 8 Sep 2013 19:11:08 +1000 Subject: [PATCH] underscore pick can take keys as a rest param or an actual array of keys --- 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 ffb6ed816d..a0c0bea80a 100644 --- a/underscore/underscore.d.ts +++ b/underscore/underscore.d.ts @@ -1030,9 +1030,8 @@ declare module _ { * @keys The key/value pairs to keep on `object`. * @return Copy of `object` with only the `keys` properties. **/ - export function pick( - object: any, - ...keys: string[]): any; + export function pick(object: any, ...keys: string[]): any; + export function pick(object: any, keys: string[]): any; /** * Return a copy of the object, filtered to omit the blacklisted keys (or array of keys). @@ -2648,6 +2647,7 @@ interface _Chain { * @see _.pick **/ pick(...keys: string[]): _Chain; + pick(keys: string[]): _Chain; /** * Wrapped type `object`.