1 var fails = require('../internals/fails');
2 var classof = require('../internals/classof-raw');
6 // fallback for non-array-like ES3 and non-enumerable old V8 strings
7 module.exports = fails(function () {
8 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
9 // eslint-disable-next-line no-prototype-builtins -- safe
10 return !Object('z').propertyIsEnumerable(0);
12 return classof(it) == 'String' ? split.call(it, '') : Object(it);