title: Check if array is not empty with length JavaScript
body: <p>I <code>console.log(arr)</code> it shows <code>[]</code> but I <code>console.log(arr.length)</code> it shows <code>0</code>? It's confusing for me, so what is the best way to check if an array contain something?</p>