mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Add mutation notes to _.pull and _.remove. [ci skip]
This commit is contained in:
@@ -2956,6 +2956,8 @@
|
|||||||
* Removes all provided values from `array` using strict equality for
|
* Removes all provided values from `array` using strict equality for
|
||||||
* comparisons, i.e. `===`.
|
* comparisons, i.e. `===`.
|
||||||
*
|
*
|
||||||
|
* Note: Unlike `_.without`, this method mutates `array`.
|
||||||
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Arrays
|
* @category Arrays
|
||||||
@@ -2989,7 +2991,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes all elements from an array that the predicate returns truthy for
|
* Removes all elements from `array` that the predicate returns truthy for
|
||||||
* and returns an array of removed elements. The predicate is bound to `thisArg`
|
* and returns an array of removed elements. The predicate is bound to `thisArg`
|
||||||
* and invoked with three arguments; (value, index, array).
|
* and invoked with three arguments; (value, index, array).
|
||||||
*
|
*
|
||||||
@@ -3000,6 +3002,8 @@
|
|||||||
* will return `true` for elements that have the properties of the given object,
|
* will return `true` for elements that have the properties of the given object,
|
||||||
* else `false`.
|
* else `false`.
|
||||||
*
|
*
|
||||||
|
* Note: Unlike `_.filter`, this method mutates `array`.
|
||||||
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
* @category Arrays
|
* @category Arrays
|
||||||
|
|||||||
Reference in New Issue
Block a user