A new specification has been written which will give us a host of new ways to copy and then change an array. This proposal is called the "Change Array by Copy" proposal. Currently, these features are not supported in any major browser or Node.JS version. We can expect them to be supported soon though since this specification has reached Stage 3 in the Javascript proposal process.
12 Comments
Sort: