Small Proposal "!in"
Michael Theriot
michael.lee.theriot at gmail.com
Thu Jul 19 13:26:21 UTC 2018
> 'string' === typeof document.createElement('input').type
> // true
It should be noted this is a "loose check"; it does not determine whether
or not the property exists when its value equals undefined. It also
triggers getters, whereas `in` reports whether or not the property exists
without triggering a getter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180719/224ed7ca/attachment.html>
More information about the es-discuss
mailing list