Use the Array.slice() method to get the last N elements of an array, e.g. const last3 = arr.slice(-3) . The Array.slice() method will return a new array ...
確定! 回上一頁