to-object.js 271 B

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