1.0.1 • Published 2 years ago
lotide-from-todd v1.0.1
TVF-LLLotide
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 @username/lotide
Require it:
const _ = require('@username/tfountain39');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
head(...)
: This function removes all items by the first in an arraytail(...)
: This function removes the first item in an arraymiddle(...)
: This function removes all but the middle one or two indexes from an arrayassertEqualObjects(...)
: This function compares two objects for equalitycountLetters(...)
: This function counts the letters in a stringcountOnly(...)
: This function counts a specific parameter in an arrayeqArrays(...)
: This function compares two arrays for equalityeqObjects(...)
: descriptionfindKey(...)
: This function searchs an object for a specific keyfindKeyByValue(...)
: This function searches an object for a specific value and returns the keymap(...)
: This function applies a function to each element in an array and create a new array containing the resultstakeUntil(...)
: This function iterates through an array and collects elements until the callback condition is metriptionwithout(...)
: This functions removes specified items from an array and returns that array after transformationhead, tail, middle, assertEqualObjects, countLetters, countOnly, eqArrays eqObjects, findKey, findKeyByValue, map, takeUntil, without
1.0.1
2 years ago