1.0.0 • Published 4 years ago
@arsala1995/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 @arsala1995/lotide
Require it:
const _ = require('@arsala1995/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(head)
: prints the head of arrayfunction2(tail)
: prints everything except the first element in arrayfunction3(middle)
: prints middle element in arrayfunction3(assertEqual)
: checks if elements are equalfunction3(eqArrays)
: checks if the items in arrays are equalfunction3(assertArraysEqual)
: returns true if arrays are equalfunction3(assertObjectsEqual)
: checks if the objects are equalfunction3(countOnly)
: counts the elementsfunction3(findKey)
: looks for the keyfunction3(findKeyByValue)
: looks for the key using the value of the keyfunction3(letterPositions)
: searches for the position of the letterfunction3(map)
: like a for functionfunction3(takeUntil)
: takes data until reaches the exceptionfunction3(without)
: prints everything except the mentioned one
1.0.0
4 years ago