Like other programming languages, JavaScript also have methods to check this. The simplest would be let myArray = []; if( myArray.length > 0 ) { ...
確定! 回上一頁