EASYAIuniappNewUI/node_modules/core-js/internals/an-object-or-undefined.js
2025-02-08 18:50:38 +08:00

11 lines
305 B
JavaScript

'use strict';
var isObject = require('../internals/is-object');
var $String = String;
var $TypeError = TypeError;
module.exports = function (argument) {
if (argument === undefined || isObject(argument)) return argument;
throw new $TypeError($String(argument) + ' is not an object or undefined');
};