All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.internals.an-object.js Maven / Gradle / Ivy

The newest version!
'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 new $TypeError($String(argument) + ' is not an object');
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy