osuntol-lotide
v1.0.0
Published
learning library of lodash created as a project for school
Downloads
3
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 @osuntol/lotide
Require it:
const _ = require('@osuntol/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
assertArraysEqual
: checking if arrays are equalassertEqual
: checking if data is equalassertObjectEquals
: checking if objects are equalcountLetters
: counting letterscountOnly
: counting only element occurs in an arrayeqArrays
: checking if arrays equaleqObjects
: checking if data in object are equalfindKey
: finding key in an objectfindKeyByValue
: finding key by valueflatten
: remove arrays within an arrayhead
: first element within an arrayletterPosition
: find the position of the lettermap
: creates a new array based on calling a functionmiddle
: find middle values of an arraytail
: find the last element withinm an arraytakeUntil
: take until value is truthywithout
: remove a specific element from an array