DIR: /proc/1784574/task/1784574/root/usr/share/node_modules/lodash/ |
Current File : //proc/1784574/task/1784574/root/usr/share/node_modules/lodash/_castFunction.js |
var identity = require('./identity'); /** Detect free variable `globalThis` */ const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis; /** * 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; |