3 ms·
Good to know. I peeked into underscore's source to see how this type of check is handled. Aparently the issue is more complicated than I thought, because the f
by deckar01 11y ago
Good to know. I peeked into underscore's source to see how this type of check is handled.
Aparently the issue is more complicated than I thought, because the following comparison is used:
obj[key] === void 0
Are they really defending themselves against the function being rebound with undefined shadowed?
http://adripofjavascript.com/blog/drips/javascripts-void-operator.html http://adripofjavascript.com/blog/drips/javascripts-void-ope...
- masklinn 11y agoYeah. It might be an issue when you're a widely used library, you might routinely encounter completely insane stuff. In a codebase you own though, I wouldn't worry about it, you can just set whoever decides rebinding undefined is funny on fire.