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) 245 B
const assert = require("chai").assert; const letterPositions = require("../letterPositions"); describe("#letterPositions", () => { it('should return [1] for "hello".e', () => { assert.deepEqual(letterPositions("hello").e, [1]); }); });