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
Martins Gouveia -
Raj Nandan Sharma -
sharathchandark -
Nikhilesh Mauje -
Top comments (0)