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.

require-object-coercible.js 346B

1234567891011
  1. 'use strict';
  2. var isNullOrUndefined = require('../internals/is-null-or-undefined');
  3. var $TypeError = TypeError;
  4. // `RequireObjectCoercible` abstract operation
  5. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  6. module.exports = function (it) {
  7. if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
  8. return it;
  9. };