Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
NJavascript配列の最後のメンバーを選択するエレガントな組み込み(機能スタイル)の方法はありますか?
N
次のように簡単です。
list.slice( -N );