const isEmpty = arr => !Array.isArray(arr) || arr.length === 0;
// Examples
isEmpty([]); // true
isEmpty([1, 2, 3]); // false
const isEmpty = arr => !Array.isArray(arr) || arr.length === 0;
// Examples
isEmpty([]); // true
isEmpty([1, 2, 3]); // false
For further actions, you may consider blocking this person and/or reporting abuse
Anwar Hossain -
Amaresh Adak -
Gladiators Battle -
Idris Gadi -
Top comments (0)