@danminogue_31788/lotide
v1.0.1
Published
A function library published for learning purposes.
Downloads
7
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 @danminogue_31788/lotide
Require it:
const _ = require('@danminogue_31788/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(assertArraysEqual)
: Function that asserts if arrays are equal.function2(assertEqual)
: descriptionfunction3(assertObjectsEqual)
: Function that asserts if objects are equal.function4(countLetters)
: Function that counts the instances of a letter in a string.function5(countOnly)
: Function that counts only specified items in objects.function6(eqArrays)
: Function that checks if arrays are equal.function7(eqObjects)
: Function that checks if objects are equal.function8(findKey)
: Function that finds keys in objects.function9(findKeyByValue)
: Function that finds keys in objects through their values.function10(flatten)
: Function that removes nested arrays from inside an array.function11(head)
: Function that returns the head of an array.function12(letterPositions)
: Function that returns the index of a letter.function13(middle)
: Function that returns the middle of an array.function14(tail)
: Function that returns the middle of an array.function15(takeUntil)
: Function that returns array until x item.function16(without)
: Function returns array without specified value.