@zezking/lotide
v1.0.3
Published
This is mini lodash library for LighthouseLabs Bootcamp
Downloads
1
Readme
Lotide
A mini clone of the Lodash library.
Purpose
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.
Usage
Install it:
npm install @zezking/lotide
Require it:
const _ = require('@zezking/lotide');
Call it:
const results1 = _.tail([1, 2, 3]) // => [2, 3]
Documentation
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