javascript check array > 0 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
}