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 @adam-brendan/lotide
Require it:
const _ = require('@adam-brendan/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
countLetters
: creates an object with the count of each letter in a stringcountOnly
: counts the instances of given values in an arrayeqArrays
: checks if two arrays are equaleqObjects
: checks if two objects are equalfindKey
: finds the key of an object that corresponds to a callbackfindKeyByValue
: finds the key of an object using a given valueflatten
: flattens a nested array to one level of depthhead
: returns the first value of an arrayletterPositions
: returns the index values of all letters in a stringmap
: a clone of javascript's map functionmiddle
: returns the middle value(s) of an arraytail
: returns an array with the first value removedtakeUntil
: prints each value of an array until a given condition is metwithout
: take an array and removes a specific value