This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/es-toolkit/dist/compat/function/rest.js
T

16 lines
371 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const rest$1 = require('../../function/rest.js');
function rest(func, start = func.length - 1) {
start = Number.parseInt(start, 10);
if (Number.isNaN(start) || start < 0) {
start = func.length - 1;
}
return rest$1.rest(func, start);
}
exports.rest = rest;