Afanasev_Stepan_PIbd-21_IP/ИП 3 лаба/node_modules/es-abstract/2019/ToObject.js
[USERNAME] 0dd26716dc Lab2-5
2024-01-10 16:11:49 +04:00

15 lines
329 B
JavaScript

'use strict';
var GetIntrinsic = require('get-intrinsic');
var $Object = GetIntrinsic('%Object%');
var RequireObjectCoercible = require('./RequireObjectCoercible');
// https://262.ecma-international.org/6.0/#sec-toobject
module.exports = function ToObject(value) {
RequireObjectCoercible(value);
return $Object(value);
};