1.0.0 • Published 3 years ago
@mariajs10/lotidev2 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 @mariajs10/lotide
Require it:
const _ = require('@mariajs10/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
assertArraysEqual(...)
: helps validate comparison between 2 arrays with a easily understanble printing statementassertObjectsEqual(...)
: helps validate comparison between 2 objects with a easily understandable printing statementcountOnly(...)
: gives the count of letters in a given stringfindKey(...)
: findes the key for the given key from the objecthalloween(...)
: removes the asked umbers from the orginal array andreturns with the rmeoved itemscountOnly(...)
: gives the count of letters in a given stringreversestring(...)
: reverses the given stringtakeUntil(...)
: splices the arry until the given eleent is reached in the arraymiddle(...)
: returns array with the middle most element in the original arraycountOnly(...)
: gives the count of letters in a given stringmap(...)
: does a certain function on the given array ad returns the answer in a new arrayhead(...)
: returns the 1st element in the given arraytail(...)
: returns the last element in the arrayfindKeybyVlaue(...)
: returns the key from the object by comparing the value given in the uestion with the different values and the returning the key
1.0.0
3 years ago