cherry
cherry copied to clipboard
Consider emitting JS splice operator to optimize varargs functions
Questions: is splice supported everywhere now? What do we gain, what risk do we take by optimizing this?
is splice supported everywhere now?
No IE 11, but everything else seems to be ok (including Edge which afaik is the default browser on windows now): https://caniuse.com/mdn-javascript_operators_spread
Cool!
A small amendment: IE 11 also only has partial support for es6 https://caniuse.com/es6 (which the splice operator is part of), for example no support for es6 class https://caniuse.com/es6-class so it really seems like there’s no compatibility downside to adopting it.
Yeah, IE is dead now right?