Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

an-object.js 304B

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