996a87d0026bc7c2d3169071ea9a6d13859852cd8b678dbf2d4911949d545b17c44cda17e5c4a1ef4244972d41c43051e7f89f5508aa1d53b2b3edd3aa6a54 533 B

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. };