UNPKG

typedash

Version:

modern, type-safe collection of utility functions

13 lines (11 loc) 243 B
'use strict'; // src/functions/take/take.ts function take(array, count) { if (count <= 0) { return []; } return array?.slice(0, count) ?? []; } exports.take = take; //# sourceMappingURL=out.js.map //# sourceMappingURL=index.cjs.map