1.0.0 • Published 2 years ago
@mruhl14/lotide v1.0.0
lotide
Author: @mruhl14
Version 1.0.0
Description: "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 @mruhl14/lotide
Require it:
const _ = require('@mruhl14/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(head)
: removes tail in arrayfunction2(tail)
: removes head in arrayfunction3(middle)
: produces middle of arrayfunction1(asserteqObject)
: compares 2 objectsfunction2(assertArraysEqual)
: compares 2 arraysfunction3(countLetters)
: returns letter occurrencesfunction1(countOnly)
: records occurences in array if true value in objectfunction2(eqArrays)
: compares 2 arraysfunction3(eqObjects)
: compares 2 objectsfunction1(findKey)
: returns key in objectfunction2(findKeybyValue)
: returns key in object based on its valuefunction3(letterPositions)
: returns positions of element in a string.function1(map)
: returns number of letters in words in a stringfunction2(without)
: return array without input.
1.0.0
2 years ago