qauMaWeb/node_modules/core-js/internals/an-object.js

12 lines
341 B
JavaScript
Raw Permalink Normal View History

2024-10-13 18:02:27 +08:00
var global = require('../internals/global');
var isObject = require('../internals/is-object');
var String = global.String;
var TypeError = global.TypeError;
// `Assert: Type(argument) is Object`
module.exports = function (argument) {
if (isObject(argument)) return argument;
throw TypeError(String(argument) + ' is not an object');
};