CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_castFunction.js15 linesDownload Raw Back to lodash-es
1import identity from './identity.js';2 3/**4 * Casts `value` to `identity` if it's not a function.5 *6 * @private7 * @param {*} value The value to inspect.8 * @returns {Function} Returns cast function.9 */10function castFunction(value) {11  return typeof value == 'function' ? value : identity;12}13 14export default castFunction;15 
basant307/AI_Governance_Project · CoolFace