Server IP : 192.250.235.76 / Your IP : 45.90.210.12
System : Linux s2968.sgp1.stableserver.net 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
PHP Version : 8.2.29
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
1902120114081995
Server IP : 198.54.116.172 / Your IP : 216.73.216.36
System : Linux server322.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : mail
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /lib/node_modules/npm/node_modules/is-callable//index.js
'use strict';
var fnToStr = Function.prototype.toString;
var constructorRegex = /^\s*class\b/;
var isES6ClassFn = function isES6ClassFunction(value) {
try {
var fnStr = fnToStr.call(value);
return constructorRegex.test(fnStr);
} catch (e) {
return false; // not a function
}
};
var tryFunctionObject = function tryFunctionToStr(value) {
try {
if (isES6ClassFn(value)) { return false; }
fnToStr.call(value);
return true;
} catch (e) {
return false;
}
};
var toStr = Object.prototype.toString;
var fnClass = '[object Function]';
var genClass = '[object GeneratorFunction]';
var hasToStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol';
module.exports = function isCallable(value) {
if (!value) { return false; }
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
if (typeof value === 'function' && !value.prototype) { return true; }
if (hasToStringTag) { return tryFunctionObject(value); }
if (isES6ClassFn(value)) { return false; }
var strClass = toStr.call(value);
return strClass === fnClass || strClass === genClass;
};
Name
Size
Last Modified
Owner / Group
Permissions
Options
.. -- March 03 2024 22:36:29 root / root 0755 .editorconfig 0.279 KB March 10 2021 14:36:36 root / root 0644 .istanbul.yml 0.97 KB March 10 2021 14:36:36 root / root 0644 .jscs.json 4.031 KB March 10 2021 14:36:36 root / root 0644 .travis.yml 6.58 KB March 10 2021 14:36:36 root / root 0644 CHANGELOG.md 1.961 KB March 10 2021 14:36:36 root / root 0644 LICENSE 1.057 KB March 10 2021 14:36:36 root / root 0644 Makefile 3.744 KB March 10 2021 14:36:36 root / root 0644 README.md 1.932 KB March 10 2021 14:36:36 root / root 0644 index.js 1.087 KB March 10 2021 14:36:36 root / root 0644 package.json 2.854 KB March 10 2021 14:36:36 root / root 0644 test.js 5.411 KB March 10 2021 14:36:36 root / root 0644