diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index d7689f03e7..59cdf93dc3 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -129,6 +129,8 @@ result = _.lastIndexOf([1, 2, 3, 1, 2, 3], 2, 3); result = <{[key: string]: any}>_.zipObject(['moe', 'larry'], [30, 40]); result = <{[key: string]: any}>_.object(['moe', 'larry'], [30, 40]); +result = _.pull([1, 2, 3, 1, 2, 3], 2, 3); + //////////////////////////////////////////////////////////////////////////////////////// //WHAT'S LEFT //////////////////////////////////////////////////////////////////////////////////////// diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index d7cfdba956..119968dd00 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -911,6 +911,17 @@ declare module _ { callback?: ListIterator, thisArg?: any): any[]; + /** + * 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. + **/ + export function pull( + array: List, + ...values: any[]): any[]; + /** * Returns a copy of the array with all instances of the values removed. * @param array The array to remove `values` from.