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