diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 21635ef6fc..afdc3c0e8d 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -283,6 +283,7 @@ result = <_.Dictionary>_.object([['moe', 30], ['larry', 40]]); result = <_.LoDashObjectWrapper<_.Dictionary>>_([['moe', 30], ['larry', 40]]).object(); result = _.pull([1, 2, 3, 1, 2, 3], 2, 3); +result = _.pullAt([1, 2, 3, 1, 2, 3], 2, 3); result = _.range(10); result = _.range(1, 11); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index 1495163f73..c75ca9979f 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -1123,6 +1123,26 @@ declare module _ { ...values: any[]): any[]; } + interface LoDashStatic { + /** + * Removes all provided values from the given array using strict equality for comparisons, + * i.e. ===. + * @param array The array to modify. + * @param values The values to remove. + * @return array. + **/ + pullAt( + array: Array, + ...values: any[]): any[]; + + /** + * @see _.pull + **/ + pullAt( + array: List, + ...values: any[]): any[]; + } + //_.range interface LoDashStatic { /**