uni-ticket-system/node_modules/core-js/internals/an-object.js
2023-12-05 10:11:10 +08:00

11 lines
286 B
JavaScript

var isObject = require('../internals/is-object');
var $String = String;
var $TypeError = TypeError;
// `Assert: Type(argument) is Object`
module.exports = function (argument) {
if (isObject(argument)) return argument;
throw $TypeError($String(argument) + ' is not an object');
};