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).
10 lines (9 loc) • 371 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const flatten_1 = require("../flatten");
const of_1 = require("../of");
const toArray_1 = require("../toArray");
test("flatten", async () => {
const result = await toArray_1.toArray(flatten_1.flatten(of_1.of(of_1.of(1), of_1.of(2), of_1.of(3))));
expect(result).toEqual([1, 2, 3]);
});