12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
|
'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');
|
||
|
};
|