diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 28a6c1ebe..8fce20bb6 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -326,6 +326,8 @@ result = <_.LoDashArrayWrapper>_([1, 2, 3, 4, 5]).xor([5, 2, 10], [4, 5, result = _.zip(['moe', 'larry'], [30, 40], [true, false]); result = _.unzip(['moe', 'larry'], [30, 40], [true, false]); +result = _(['moe', 'larry']).zip([30, 40], [true, false]).value(); +result = _(['moe', 'larry']).unzip([30, 40], [true, false]).value(); // /* ************* // * Collections * diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index e3b73adaa..de604d818 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -2027,6 +2027,18 @@ declare module _ { unzip(...arrays: any[]): any[]; } + interface LoDashArrayWrapper { + /** + * @see _.zip + **/ + zip(...arrays: any[][]): _.LoDashArrayWrapper; + + /** + * @see _.zip + **/ + unzip(...arrays: any[]): _.LoDashArrayWrapper; + } + //_.zipObject interface LoDashStatic { /**