benefits of saving reference to built-in methods
问题 ap = Array.prototype, aps = ap.slice, apsp = ap.splice, I often see code like above in different frameworks. What are the benefits of this? Why not use it directly? 回答1: Several benefits: Faster at run-time (fewer lookups to get the final result) Smaller code before minification Easier to reduce even more with minification Less typing when coding One should note that I think it makes the code less readable to people not already familiar with the code or its conventions because the code isn't