Here are the corresponding copying array methods. You can notice that slice and toSpliced are used twice. Also, fun fact, unlike a for loop, you cannot break out of an array method.
| [🌑, 🌒, 🌓, 🌔].slice(0, -1) | → | [🌑, 🌒, 🌓] |
| [🌑, 🌒, 🌓, 🌔].concat([🐈⬛]) | → | [🌑, 🌒, 🌓, 🌔, 🐈⬛] |
| [🌑, 🌒, 🌓, 🌔].toReversed() | → | [🌔, 🌓, 🌒, 🌑] |
| [🌓, 🌑, 🌔, 🌒].toSorted() | → | [🌑, 🌒, 🌓, 🌔] |
| [🌑, 🌑, 🌑, 🌑].toSpliced(1, 1, 🐈⬛) | → | [🌑, 🐈⬛, 🌑, 🌑] |
| [🌑, 🌑, 🌑, 🌑].toSpliced(0, 🐈⬛) | → | [🐈⬛, 🌑, 🌑, 🌑, 🌑] |
| [🌑, 🌒, 🌓, 🌔].slice(1) | → | [🌒, 🌓, 🌔] |
| [🌒, 🌓].map((🌑)=> 🌑+🐈⬛) | → | [🌒🐈⬛, 🌓🐈⬛] |