The only good way to test if an array is empty is with arr.length . Let see different case. if(arr === true) will always be false since array is not a boolean ...
確定! 回上一頁