Files
jefferyzhao b9bdc8598b first commit
2025-07-31 17:44:12 +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');
};