From 9841ecc216bd491d615c84829c3d08ee1668dcd1 Mon Sep 17 00:00:00 2001 From: DomiR Date: Wed, 13 Jan 2016 17:09:38 +0100 Subject: [PATCH] (feature) Renamed _.invoke to _.invokeMap --- lodash/lodash-tests.ts | 4 ++-- lodash/lodash.d.ts | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 765ab33ee..f8b8671a9 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -4529,8 +4529,8 @@ module TestKeyBy { } } -result = _.invoke([[5, 1, 7], [3, 2, 1]], 'sort'); -result = _.invoke([123, 456], String.prototype.split, ''); +result = _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort'); +result = _.invokeMap([123, 456], String.prototype.split, ''); // _.map module TestMap { diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 93d974cfd..a713c97d7 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -20,7 +20,7 @@ TODO: - [x] Renamed _.first to _.head - [x] Renamed _.indexBy to _.keyBy -- [ ] Renamed _.invoke to _.invokeMap +- [x] Renamed _.invoke to _.invokeMap - [ ] Renamed _.modArgs to _.overArgs - [ ] Renamed _.padLeft & _.padRight to _.padStart & _.padEnd - [ ] Renamed _.pairs to _.toPairs @@ -6938,7 +6938,7 @@ declare module _ { ): LoDashExplicitObjectWrapper>; } - //_.invoke + //_.invokeMap interface LoDashStatic { /** * Invokes the method named by methodName on each element in the collection returning @@ -6949,47 +6949,47 @@ declare module _ { * @param methodName The name of the method to invoke. * @param args Arguments to invoke the method with. **/ - invoke( + invokeMap( collection: Array, methodName: string, ...args: any[]): any; /** - * @see _.invoke + * @see _.invokeMap **/ - invoke( + invokeMap( collection: List, methodName: string, ...args: any[]): any; /** - * @see _.invoke + * @see _.invokeMap **/ - invoke( + invokeMap( collection: Dictionary, methodName: string, ...args: any[]): any; /** - * @see _.invoke + * @see _.invokeMap **/ - invoke( + invokeMap( collection: Array, method: Function, ...args: any[]): any; /** - * @see _.invoke + * @see _.invokeMap **/ - invoke( + invokeMap( collection: List, method: Function, ...args: any[]): any; /** - * @see _.invoke + * @see _.invokeMap **/ - invoke( + invokeMap( collection: Dictionary, method: Function, ...args: any[]): any;