first
This commit is contained in:
11
node_modules/core-js/internals/an-object.js
generated
vendored
Normal file
11
node_modules/core-js/internals/an-object.js
generated
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
'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');
|
||||
};
|
Reference in New Issue
Block a user