UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (9 loc) 281 B
import { rest as rest$1 } from '../../function/rest.mjs'; 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(func, start); } export { rest };