"Check if an array is empty" is incorrect
zjx0909 opened this issue · comments
There is a problem with checking that the array is empty. When the parameter is "", the result is true.
"const isEmpty = arr => !Array.isArray(arr) || arr.length === 0" error
"const isEmpty = arr => Array.isArray(arr) && arr.length === 0" right