Re:Introducing smap.js, a forward polyfill for ES6 Maps
by esrauch on Friday November 09, 2012 @01:26PM
(#4764052)
I think the reason for these is for js minification. With these assignments a simple minifier will replace those three variables with a line like this:
Then your minified js will be smaller because all other instances of true, false and null will be one character. Whether or not this is a reasonable optimization is debatable but in terms of pure code size it would be a win.
[ Parent
| on HN ]