Files
supplier-dispatch-h5/node_modules/core-js/internals/an-object.js
2023-08-11 10:45:20 +08:00

12 lines
300 B
JavaScript

'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');
};