Re:JavaScript for People Who Hate JavaScript
by Guillaume86 on Wednesday August 09, 2017 @07:47AM
(#14967611)
fyi splice returns the slice you remove, and ES6 allows array deconstruction so you could just use `var [res] = a.splice(4, 1);`.
[ Parent
| on HN ]
There are no comments on this comment yet.