Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/note.picotech.app/public_html/node_modules/fn.name/ drwxr-xr-x | |
| Viewing file: Select action/file-type: 'use strict';
var toString = Object.prototype.toString;
/**
* Extract names from functions.
*
* @param {Function} fn The function who's name we need to extract.
* @returns {String} The name of the function.
* @public
*/
module.exports = function name(fn) {
if ('string' === typeof fn.displayName && fn.constructor.name) {
return fn.displayName;
} else if ('string' === typeof fn.name && fn.name) {
return fn.name;
}
//
// Check to see if the constructor has a name.
//
if (
'object' === typeof fn
&& fn.constructor
&& 'string' === typeof fn.constructor.name
) return fn.constructor.name;
//
// toString the given function and attempt to parse it out of it, or determine
// the class.
//
var named = fn.toString()
, type = toString.call(fn).slice(8, -1);
if ('Function' === type) {
named = named.substring(named.indexOf('(') + 1, named.indexOf(')'));
} else {
named = type;
}
return named || 'anonymous';
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.003 ]-- |