1.0.0 • Published 3 years ago
@jgabriel88/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 @jgabriel88/lotide
Require it:
const _ = require('@jgabriel88/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
assertArraysEqual()
: descriptionassertEqual()
: descriptionassertObjectsEqual()
: description
tail()
: Function used to retrieve the fist element of an Arraymiddle()
: Function used to retrieve the elemente in the middle of an ArrayassertArraysEqual()
: Function to assert if two Arrays are equalassertEqual()
: Function used to check if two Strings are equalassertObjectsEqual()
: Function used used to assert if two Objects are equalcountLetters()
: Function used to count letter in a StringcountOnly()
: Function used to count how many times the same String or Numbers appears in an ArrayeqArrays()
: Function used to check if to Arrays are equaleqObjects()
: Function used used to check if two Objects are equalfindKey()
: Function used to find a Value of an Object keyfindKeyByValue()
: Function used to finde a Object key by valueflatten()
: Function used to dissolve a nested ArrayletterPositions()
: Function used to show in wich index a character is placed in a stringmap()
: Function used to iterate in an ArraytakeUntil()
: Function used to iterate in an Array untill the given value is foundwithout()
: Function used to remove from an Array the given value.
1.0.0
3 years ago