mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
definitions for _.pull
This commit is contained in:
@@ -129,6 +129,8 @@ result = <number>_.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 = <any[]>_.pull([1, 2, 3, 1, 2, 3], 2, 3);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
//WHAT'S LEFT
|
||||
////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Vendored
+11
@@ -911,6 +911,17 @@ declare module _ {
|
||||
callback?: ListIterator<any, any>,
|
||||
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<any>,
|
||||
...values: any[]): any[];
|
||||
|
||||
/**
|
||||
* Returns a copy of the array with all instances of the values removed.
|
||||
* @param array The array to remove `values` from.
|
||||
|
||||
Reference in New Issue
Block a user