Files
2025-11-28 19:45:44 -07:00

13 lines
314 B
JavaScript

'use strict';
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const toInteger = require('../compat/util/toInteger.js');
function take(arr, count, guard) {
count = guard || count === undefined ? 1 : toInteger.toInteger(count);
return arr.slice(0, count);
}
exports.take = take;