News for hackers. Stuff that matters.
Re:How JavaScript Works: deep dive into call, apply, and bind by JoeCortopassi on Friday July 09, 2021 @07:31PM (#27789649)
`Array.prototype.slice.call(arguments)` is a good example. In fact, I'm struggling to think why you would replace anything other than bind with an arrow function

EDIT: My example is bad, you could just `[...arguments]`

Re:How JavaScript Works: deep dive into call, apply, and bind by bluepnume on Friday July 09, 2021 @07:32PM (#27789654)
`Array.prototype.slice.call(arguments)` can be replaced with `Array.from(arguments)` (or as you mentioned `[ ...arguments ]`)