CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_baseRest.js18 linesDownload Raw Back to lodash-es
1import identity from './identity.js';2import overRest from './_overRest.js';3import setToString from './_setToString.js';4 5/**6 * The base implementation of `_.rest` which doesn't validate or coerce arguments.7 *8 * @private9 * @param {Function} func The function to apply a rest parameter to.10 * @param {number} [start=func.length-1] The start position of the rest parameter.11 * @returns {Function} Returns the new function.12 */13function baseRest(func, start) {14  return setToString(overRest(func, start, identity), func + '');15}16 17export default baseRest;18 
basant307/AI_Governance_Project · CoolFace