to-object.js 321 B

12345678910
  1. var global = require('../internals/global');
  2. var requireObjectCoercible = require('../internals/require-object-coercible');
  3. var Object = global.Object;
  4. // `ToObject` abstract operation
  5. // https://tc39.es/ecma262/#sec-toobject
  6. module.exports = function (argument) {
  7. return Object(requireObjectCoercible(argument));
  8. };