CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_overArg.js16 linesDownload Raw Back to lodash
1/**2 * Creates a unary function that invokes `func` with its argument transformed.3 *4 * @private5 * @param {Function} func The function to wrap.6 * @param {Function} transform The argument transform.7 * @returns {Function} Returns the new function.8 */9function overArg(func, transform) {10  return function(arg) {11    return func(transform(arg));12  };13}14 15module.exports = overArg;16 
basant307/AI_Governance_Project · CoolFace