backoffice/node_modules/core-js/modules/_iobject.js

5 lines
236 B
JavaScript
Raw Normal View History

2020-02-06 10:09:39 +00:00
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var cof = require('./_cof');
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
return cof(it) == 'String' ? it.split('') : Object(it);
};