PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/sinon/node_modules/@sinonjs/samsam/lib
Просмотр файла: get-class-name.js
"use strict";
var re = /function (\w+)\s*\(/;
function getClassName(value) {
if (value.constructor && "name" in value.constructor) {
return value.constructor.name;
}
if (typeof value.constructor === "function") {
var match = value.constructor.toString().match(re);
if (match.length > 1) {
return match[1];
}
}
return null;
}
module.exports = getClassName;
Выполнить команду
Для локальной разработки. Не используйте в интернете!