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.

is-callable.js 533B

123456789101112
  1. 'use strict';
  2. // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
  3. var documentAll = typeof document == 'object' && document.all;
  4. // `IsCallable` abstract operation
  5. // https://tc39.es/ecma262/#sec-iscallable
  6. // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
  7. module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
  8. return typeof argument == 'function' || argument === documentAll;
  9. } : function (argument) {
  10. return typeof argument == 'function';
  11. };