A mini clone of the Lodash library.
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.
Install it:
npm install @tofi124/lotide
Require it:
const _ = require('@tofi124/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
The following functions are currently implemented:
function1(assertArraysEqual)
: compares and asserts two arraysfunction2(assertEqual)
: compares two given inputs and asserstsfunction3(countLetters)
: counts instances of that letter in the given wordfunction4(countOnly)
: count the instances of given names in a given array of namesfunction5(eqArrays)
: compares two arraysfunction6(eqObjects)
: compares two objectsfunction7(findkey)
: returns the key to an object where the number is givenfunction8(findKeyByValue)
: return the name of the movie in a given generefunction9(flatten)
: returns flattened arrayfunction10(letterPositions)
: returns the position of letter in a stringfunction11(map)
: this will return a new array based on the results of the callback function.function12(map2)
: Implemention of map 2function13(middle)
: returns middle of array