mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Use consistent nullish check for array.
This commit is contained in:
@@ -21,7 +21,7 @@ import unzip from './unzip.js'
|
||||
* // => [3, 30, 300]
|
||||
*/
|
||||
function unzipWith(array, iteratee) {
|
||||
if (!(array && array.length)) {
|
||||
if (!(array != null && array.length)) {
|
||||
return []
|
||||
}
|
||||
const result = unzip(array)
|
||||
|
||||
Reference in New Issue
Block a user