mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Use consistent nullish check for array.
This commit is contained in:
@@ -23,7 +23,7 @@ import basePullAll from './.internal/basePullAll.js'
|
||||
* // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]
|
||||
*/
|
||||
function pullAllWith(array, values, comparator) {
|
||||
return (array && array.length && values && values.length)
|
||||
return (array != null && array.length && values != null && values.length)
|
||||
? basePullAll(array, values, undefined, comparator)
|
||||
: array
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user