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/array/take.mjs
T

9 lines
211 B
JavaScript

import { toInteger } from '../compat/util/toInteger.mjs';
function take(arr, count, guard) {
count = guard || count === undefined ? 1 : toInteger(count);
return arr.slice(0, count);
}
export { take };