mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +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
|
||||
* comparisons, i.e. `===`.
|
||||
*
|
||||
* Note: Unlike `_.without`, this method mutates `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @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 invoked with three arguments; (value, index, array).
|
||||
*
|
||||
@@ -3000,6 +3002,8 @@
|
||||
* will return `true` for elements that have the properties of the given object,
|
||||
* else `false`.
|
||||
*
|
||||
* Note: Unlike `_.filter`, this method mutates `array`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @category Arrays
|
||||
|
||||
Reference in New Issue
Block a user