source: imaps-frontend/node_modules/core-js/internals/is-callable.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 533 bytes
Line 
1'use strict';
2// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
3var documentAll = typeof document == 'object' && document.all;
4
5// `IsCallable` abstract operation
6// https://tc39.es/ecma262/#sec-iscallable
7// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
8module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
9 return typeof argument == 'function' || argument === documentAll;
10} : function (argument) {
11 return typeof argument == 'function';
12};
Note: See TracBrowser for help on using the repository browser.