1.0.0 • Published 4 years ago
@meghabhale/lotide v1.0.0
Lotide
version 1.0.0
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('@meghabhale/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
countLetters(...): "Count occurence of a letter in a String"countOnly(...): "Count element occurences in an array."assertArraysEqual(...): "custom assert function for arrays"assertEqual(...): "custom assert function"eqArrays(...): "equality check for Arrays"eqObjects(...): equality check for objectsfindKey(...): "Find key by highest occurence"findKeyByValue(...): "Find key by specified value."head(...): "Find head of an arrary"tail(...): Find tail of an arraymiddle(...): "Find middle of an array"without(...): "Filter array"takeUntil(...): "Display elements of an array until specified letter found"map(...): "Create map containing first letter of each element of an array"letterPositions(...): "Counts occurence of each letter of String and display its each positions"assertObjectsEqual(...): description
1.0.0
4 years ago