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

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • 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.