> '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.
_______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss