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
Metta Surendhar -
Bohdan Lukianets -
websilvercraft -
Nozibul Islam -
Top comments (0)