source: node_modules/core-js-pure/internals/an-object-or-undefined.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 305 bytes
Line 
1'use strict';
2var isObject = require('../internals/is-object');
3
4var $String = String;
5var $TypeError = TypeError;
6
7module.exports = function (argument) {
8 if (argument === undefined || isObject(argument)) return argument;
9 throw new $TypeError($String(argument) + ' is not an object or undefined');
10};
Note: See TracBrowser for help on using the repository browser.