en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

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

Open Hasan-Mir opened this issue 1 year ago • 3 comments

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.

Hasan-Mir avatar Dec 08 '23 12:12 Hasan-Mir

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.

damonholden avatar Feb 08 '24 11:02 damonholden

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)? 🙂

smith558 avatar Feb 14 '24 09:02 smith558

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.

damonholden avatar Feb 14 '24 17:02 damonholden