UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

26 lines (25 loc) 650 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var purry_1 = require("./purry"); function first() { return purry_1.purry(_first, arguments, first.lazy); } exports.first = first; function _first(array) { return array[0]; } (function (first) { function lazy() { return function (value) { return { done: true, hasNext: true, next: value, }; }; } first.lazy = lazy; (function (lazy) { lazy.single = true; })(lazy = first.lazy || (first.lazy = {})); })(first = exports.first || (exports.first = {}));