PHP WebShell
Текущая директория: /opt/BitGoJS/node_modules/@cosmjs/stargate/node_modules/protobufjs/cli/node_modules/lodash
Просмотр файла: _castFunction.js
var identity = require('./identity');
/**
* Casts `value` to `identity` if it's not a function.
*
* @private
* @param {*} value The value to inspect.
* @returns {Function} Returns cast function.
*/
function castFunction(value) {
return typeof value == 'function' ? value : identity;
}
module.exports = castFunction;
Выполнить команду
Для локальной разработки. Не используйте в интернете!