@leelamprey/lotide 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 @username/lotide
Require it:
const _ = require('@username/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented: head: Find the first element of an array tail: remove the first element of an array and return assertEqual: Confirm if two values are equal assertArraysEqual: confirm if two arrays are equal middle: find the middle value of an array of values countLetters: count the number of letters in a string countOnly: count only the hunted for items in an array eqArray: check if arrays are equal eqObjects: check if objects are equal findKey: Find by keys findKeyByValue: Find keys by the values inside letterPositions: Find out what positions letters are in map: grab the first letters of elements in an array takeUntil: takes until specified point without: removes specified characters.
2 years ago