mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Use consistent nullish check for array.
This commit is contained in:
@@ -23,7 +23,7 @@ import basePullAll from './.internal/basePullAll.js'
|
||||
* // => [{ 'x': 2 }]
|
||||
*/
|
||||
function pullAllBy(array, values, iteratee) {
|
||||
return (array && array.length && values && values.length)
|
||||
return (array != null && array.length && values != null && values.length)
|
||||
? basePullAll(array, values, iteratee)
|
||||
: array
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user