MrShi
2025-09-05 2f0f13c472e3cb663c3f6cbb417cffe760a497f0
1
2
3
4
5
6
7
8
9
10
'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');
};