1.0.0 • Published 5 years ago
@honeyyusuf/lotide-test v1.0.0
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 @honeyyusuf/lotide
Require it:
const _ = require('@honeyyusuf/lotide-test');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
assertArrays(...): check the out put arrat functon with the expected valueassertEqual(...): check the out put with the expected valuecountletter(...): count the lettercountOnly(...): count the valueeqArrays(...): check if the arrays are equalfindKey(...): find the object with a callback functionfindKeyByValue(...): find the object with a give valuehead(...): finds the head of arrayindex(...): contains the module for head , middel and tail functionletterPositions(...): find the index of a lettermap(...): map the array with a callbackfuncionmiddle(...): find the middle of the arraytail(...): finds the tail of arraytakeUntil(...): output in array until a specifie valuewithout(...): removes a value from array
1.0.0
5 years ago