UNPKG

pragmatic-fp-ts

Version:

Opinionated functional programming library with easy use in mind

10 lines (9 loc) 259 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.take = void 0; function take(n, coll) { if (arguments.length === 1) return (coll_) => take(n, coll_); return (coll || []).slice(0, n); } exports.take = take;