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
Diona Rodrigues -
Ukeje Chukwuemeriwo Goodness -
Yash Jain -
Sukhrob Tech -
Top comments (0)