To check if an array is not empty we simply test if the length property is not 0 . const arr = [];if(arr.length !== 0) { console.log('not empty') }.
確定! 回上一頁