@amohamdev/lotide v1.0.0
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 @amohamed96/lotide
Require it:
const _ = require('@amohamed96/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
eqObjects - Compares 2 objects
assertArraysEqual - Compares and confirms if 2 arrays equal
findKey - Finds key of an array
assertEqual - Confirms if 2 things are equal
findKeyByValue - Finds key in an array by the value
assertObjectsEqual - Compares and confirms if 2 objects are equal
head - Finds first index of an array
tail - Finds last indexes of an array
countLetters - Counts letters
letterPositions- Finds letter positions
takeUntil
countOnly
map
eqArrays - Checks if 2 arrays are equal
middle - Finds middle of an array
without - Takes out a value in an array
3 years ago