javascript-tutorial / en.javascript.info

Modern JavaScript Tutorial
https://javascript.info
Other
23.13k stars 3.84k forks source link

Add new toSorted, toSpliced and toReversed methods to "Array methods" article #3622

Open Hasan-Mir opened 7 months ago

Hasan-Mir commented 7 months ago

This pull request introduces additional notes to the documentation of Array methods. The aim is to inform readers about new methods that perform similar operations to splice, sort, and reverse, but do not mutate the original array. These methods are toSpliced, toSorted, and toReversed.

damonholden commented 5 months ago

yeah lets get this updated. Also worth mentioning the .with() Array method aswell. Also some of the tasks like "copy and sort" in this section need to be updated to include the new apis.

smith558 commented 5 months ago

Also worth mentioning the .with() Array method aswell. Also some of the tasks like "copy and sort" in this section need to be updated to include the new apis.

Would you be interested in opening a PR for this after this one gets merged (will be soon)? 🙂

damonholden commented 5 months ago

Also worth mentioning the .with() Array method aswell. Also some of the tasks like "copy and sort" in this section need to be updated to include the new apis.

Would you be interested in opening a PR for this after this one gets merged (will be soon)? 🙂

Sounds good. Once merged, I'll work on the PR to get the other methods in and adjust the tasks as well. Will keep an eye out.