There are at least 6 (!) ways to clone an array: loop; slice; Array.from(); concat; spread operator (FASTEST); map A.map(function(e){return e;});.
確定! 回上一頁