New Array Slice Notation in JavaScript: A Comprehensive Guide
Introduction
JavaScript, being one of the most widely used programming la...
For further actions, you may consider blocking this person and/or reporting abuse
It's at TC39 stage 1 isn't it? Not going to be around for a while if that's the case.
Yup, I think you're right there - github.com/tc39/proposal-slice-not...
Doesn't seem to be implemented on any browsers yet either.
I think though, if you use my turboprop and metho-number libraries together you can do stuff like this:
You could probably make all the negative number stuff work too, as well as ranges that implicitly start from the beginning or end.
😉
Turboprop: JS Arrays as Property Accessors!?!
Jon Randy 🎖️ ・ May 26 '22
JS Number extensions with Metho
Jon Randy 🎖️ ・ Oct 13 '21
I absolutely love that stuff you did there. Symantically very easy to understand.