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
William Kwadwo Owusu -
Skyler Dev -
João Pedro -
Seena Khan -
Top comments (0)