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