@siopao2001/lotide
v1.0.0
Published
A package with library of functions
Downloads
2
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 @siopao2001/lotide
Require it:
const _ = require('@username/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(assertArraysEqual)
: assert equality between arraysfunction2(assertEqual)
: compare values for equalityfunction3(assertObjectsEqual)
: assert equality between objectsfunction3(eqObjects)
: compare objects for equalityfunction3(eqArrays)
: compare arrays for equalityfunction3(countLetters)
: count lettersfunction3(countOnly)
: count specified valuefunction3(findKey)
: find keyfunction3(findKeyByvalue)
: find key by valuefunction3(flatten)
: flatten arraysfunction3(head)
: get head item in an arrayfunction3(letterPositions)
: get index value for letters in a stringfunction3(map)
: create new array with specified functionfunction3(middle)
: get middle values in an arrayfunction3(tail)
: get tail values in anarrayfunction3(takeUntil)
: create new array once value has been identifiedfunction3(without)
: create new array with items specififed to be removed