UNPKG

axax

Version:

A library of async iterator extensions for JavaScript including ```map```, ```reduce```, ```filter```, ```flatMap```, ```pipe``` and [more](https://github.com/jamiemccrindle/axax/blob/master/docs/API.md#functions).

9 lines (8 loc) 288 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const range_1 = require("../range"); const toArray_1 = require("../toArray"); test("range", async () => { const result = await toArray_1.toArray(range_1.range(1, 3)); expect(result).toEqual([1, 2]); });