valid-object.js 182 B

12345678
  1. 'use strict';
  2. var isObject = require('./is-object');
  3. module.exports = function (value) {
  4. if (!isObject(value)) throw new TypeError(value + " is not an Object");
  5. return value;
  6. };