r/javascript • • Mar 02 '19

Useful javascript one-liners.

https://medium.com/@smellycode/js-one-liners-8bc0a6af2345?source=friends_link&sk=a9295a05aef9e514e137fca7eeb89cd1
344 Upvotes

96 comments sorted by

View all comments

1

u/adenzerda Mar 02 '19

Nice article.

I’ve heard the spread operator is still slow. Is this true, and if so, when does it become noticeable compared to other methods?

0

u/smellycode Mar 02 '19

Thanks. :)

I also heard that it's bit slow but I think browser vendors are working on it. Here's the performance plan https://docs.google.com/document/d/1EA9EbfnydAmmU_lM8R_uEMQ-U_v4l9zulePSBkeYWmY/edit

IME, I have not seen any performance glitch yet. May be that's because of babel-transpiling. In case, if I find any pertaining link/doc, I'll share it.