A mini clone of the Lodash library.
BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.
This project was created and published by me as part of my learnings at Lighthouse Labs.
Install it:
npm install @zezking/lotide
Require it:
const _ = require('@zezking/lotide');
Call it:
const results1 = _.tail([1, 2, 3]) // => [2, 3]
The following functions are currently implemented:
head(...): Return the first index of an arraytail(...): Return every index but the first index of an arraymiddle(...): Return the middle number of an array of numbersflatten(...): Flatten nested array and Return a single array of all the valueseqArray(...): Check if two arrays are equaleqObjects(...): Check if two objects are equalcountOnly(...): count how many times a key has appeared and which key user want to searchfindkeyByValue(...): Return a key that match the value of user inputLetterPositions(...): Return of an array of postions of the letter you want to search