is there any better way to check array is array not empty
well, I did some R&D about array checking but can't find a more elegant way to check array.
is there any better way to check the array and it's not empty in javascript?
if (Array.isArray(arr) && arr.length > 0) {
console.log(true)
}