UNPKG

@nknahom/lotide

Version:

Lotide is mini clone of the Lodash (https://lodash.com) library for learning JavaScript. What is Lodash? Lodash is a library that makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc.

9 lines (7 loc) 264 B
const assert = require("chai").assert; const flatten = require("../flatten"); describe("#flatten", () => { it("should return [1,2,3,4,5,6] for [1, 2, [3, 4], 5, [6]]", () => { assert.deepEqual(flatten([1, 2, [3, 4], 5, [6]]), [1, 2, 3, 4, 5, 6]); }); });