@lorleod/lotide
v1.0.3
Published
Tay's LHL lotide project - warning, I've left the list of functions incomplete and there is still more refactoring I could do. I chose to push this out now and divert focus to katas instead.
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 @lorleod/lotide
Require it:
const _ = require('@lorleod/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
head(array)
: return only first element in an arraytail(array)
: return every element that isn't firstmiddle(array)
: return middle... etcetcetcetccountOnly(allItems, itemsToCount)
: count only listed itemsmore functions etcetcetc
: etc etc etc