Closed determin1st closed 4 years ago
Probably?
probably faster :/
I don't see why it would be, unless you have data to show that it is.
well, i've tested it: https://jsperf.com/object-spread-vs-polyfill/3
oookay, at least, it's not slower... 8) theoretically it should be faster as it doesnt create additional variable..
I think your code gets optimized away.
This is way too speculative an optimization to be worth thinking about. I'm all for contributions that make LiveScript faster, but not PRs that could maybe theoretically make it faster but that in practice have no measurable effect.
probably faster :/