UNPKG

304 BJavaScriptView Raw
1'use strict';
2var isObject = require('../internals/is-object');
3
4var $String = String;
5var $TypeError = TypeError;
6
7// `Assert: Type(argument) is Object`
8module.exports = function (argument) {
9 if (isObject(argument)) return argument;
10 throw new $TypeError($String(argument) + ' is not an object');
11};