JavaScript will return undefined if array is empty. const array = []; array[array.length - 1]; // undefined. Using slice().
確定! 回上一頁