has-boxed-string-x
Version:
Check support of by-index access of string characters.
15 lines (13 loc) • 386 B
JavaScript
var string = 'a';
var boxedString = {}.constructor(string);
/**
* Check failure of by-index access of string characters (IE < 9)
* and failure of `0 in boxedString` (Rhino).
*
* `true` if no failure; otherwise `false`.
*
* @type boolean
*/
var hasBoxed = boxedString[0] === string && 0 in boxedString;
export default hasBoxed;
//# sourceMappingURL=has-boxed-string-x.esm.js.map