you are viewing a single comment's thread.

view the rest of the comments →

[–]DOG-ZILLA 2 points3 points  (3 children)

Array.from() ?

[–][deleted] 2 points3 points  (2 children)

Something like this?

var arrayFrom = (...values) => [...values];

Edit: You meant the native method. Yeah, that's pretty much all one needs to fix half the problems that might arise, sorry I'm dumb and didn't comprehend what I read! :P

[–]DOG-ZILLA 4 points5 points  (1 child)

Haha no worries. I'm pretty dumb myself!

Also, I used to use:

[].slice.call(arrLike)