amis-rpc-design/node_modules/core-js/internals/an-object.js

12 lines
300 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
'use strict';
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');
};