uni-ticket-system/node_modules/core-js/internals/an-object.js

11 lines
286 B
JavaScript
Raw Normal View History

2023-12-05 02:11:10 +00:00
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');
};