DEV Community

Discussion on: 10 Popular JavaScript methods implemented from scratch

Collapse
 
antongolub profile image
Anton Golub

sort should work in place:

10. Repeat, while j < itemCount,
a. Perform ? Set(obj, ! ToString(𝔽(j)), items[j], true).
b. Set j to j + 1.
Enter fullscreen mode Exit fullscreen mode

tc39.es/ecma262/#sec-array.prototy...
developer.mozilla.org/en-US/docs/W...

Collapse
 
northwillov profile image
Artem Verbitski • Edited

Hi!
These are only a light versions of popular methods in JS, and of course the original methods mentioned in ECMAScript are much more complex and useful.
Thank you for comment :)

Some comments have been hidden by the post's author - find out more