is array return false on empty array code example
Example: js how to check is array empty es6
var colors=[];
if(!colors.length){
// I am empty
}else{
// I am not empty
}
var colors=[];
if(!colors.length){
// I am empty
}else{
// I am not empty
}