1.0.0 • Published 5 years ago
@brashad/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 @brashad/lotide
Require it:
const _ = require('@brashad/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function assertArraysEqual(): assert that arays are equalfunction assertEqual(...): assert that arguments given are equalfunction assertObjectsEqual(...): assert that objects are equalfunction countLetters(...): count of redundant/repetitive letters in a given stringfunction countOnly(...): count qty of similar letters in a stringfunction eqArrays(...): validates equality of arraysfunction eqObjects(...): validates equality of objectsfunction findKey(...): searches specific key of an objectfunction findKeyByValue(...): search key by valuefunction head(...): returns first item of an arrayfunction letterPositions(...): description to be providedfunction loopyLighthouse(...): description to be providedfunction map(...): description to be providedfunction middle(...): returns the middle items of an arrayfunction pig-latin(...): flips the words based on famous logical game pig latin. ref: 'https://en.wikipedia.org/wiki/Pig_Latin'function raisin(...): returns not matching elemnts from an arrayfunction reverse(...): reverses any string givenfunction tail(...): returns last elementfunction takeUntil(...): description to be providedfunction without(...): description to be provided
1.0.0
5 years ago