is-callable.js 375 B

1234567891011
  1. var $documentAll = require('../internals/document-all');
  2. var documentAll = $documentAll.all;
  3. // `IsCallable` abstract operation
  4. // https://tc39.es/ecma262/#sec-iscallable
  5. module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
  6. return typeof argument == 'function' || argument === documentAll;
  7. } : function (argument) {
  8. return typeof argument == 'function';
  9. };