_iobject.js 289 B

123456
  1. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  2. var cof = require('./_cof');
  3. // eslint-disable-next-line no-prototype-builtins
  4. module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
  5. return cof(it) == 'String' ? it.split('') : Object(it);
  6. };