Repository URL to install this package:
|
Version:
0.0.2 ▾
|
website-mirror-by-proxy
/
opt
/
website-mirror-by-proxy
/
node_modules
/
lodash
/
_baseCastFunction.js
|
|---|
var identity = require('./identity');
/**
* Casts `value` to `identity` if it's not a function.
*
* @private
* @param {*} value The value to inspect.
* @returns {Array} Returns the array-like object.
*/
function baseCastFunction(value) {
return typeof value == 'function' ? value : identity;
}
module.exports = baseCastFunction;