Files
NapCatQQ/.pnpm-store/v3/files/f8/2dc5f23ba2a9f6f5417e52cc620844c53414bdacbf0629d8aea087c3aec3264d161a9af3bc5f0d1fff3c8c276d44631136f50b002ece69f5a4fc9ee2c07e3b
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

18 lines
557 B
Plaintext

import identity from './identity.js';
import overRest from './_overRest.js';
import setToString from './_setToString.js';
/**
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
*
* @private
* @param {Function} func The function to apply a rest parameter to.
* @param {number} [start=func.length-1] The start position of the rest parameter.
* @returns {Function} Returns the new function.
*/
function baseRest(func, start) {
return setToString(overRest(func, start, identity), func + '');
}
export default baseRest;