mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
12 lines
341 B
JavaScript
12 lines
341 B
JavaScript
|
|
var global = require('../internals/global');
|
||
|
|
var isObject = require('../internals/is-object');
|
||
|
|
|
||
|
|
var String = global.String;
|
||
|
|
var TypeError = global.TypeError;
|
||
|
|
|
||
|
|
// `Assert: Type(argument) is Object`
|
||
|
|
module.exports = function (argument) {
|
||
|
|
if (isObject(argument)) return argument;
|
||
|
|
throw TypeError(String(argument) + ' is not an object');
|
||
|
|
};
|