@mahsa1990a/lotide
v1.0.0
Published
A Lotide Library
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 @mahsa1990a/lotide
Require it:
const _ = require('@mahsa1990a/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(head)
: It returns first index in arrayfunction2(tail)
: It returns array without index0 means first valuefunction3(middle)
: It returns middle number in arrayfunction3(assertEqual)
: It compares the actual and expectedfunction3(eqArrays)
: It compares equality of two arraysfunction3(assertArraysEqual)
: Using eqArrays in it to compare actual and expected of arrays