1.0.1 • Published 4 years ago
@jacqlinegeng/lotide v1.0.1
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 @jacqlinegeng/lotide
Require it:
const _ = require('@jacqlinegeng/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(assertEqual): test assertionfunction2(assertArraysEquals): test assertion of arraysfunction3(assertObjectsEqual): test assertion of objectionsfunction4(countLetters): count letters in a stringfunction5(countOnly): count itemfunction6(eqArrays): test to see if the arrays are the samefunction7(eqObjects): test to see if the objects are the samefunction8(findKey): find the keys in an objectfunction9(findKeyByValues): find the key in an object by their valuesfunction10(head): find the first item in an arrayfunction11(index): find the first item in an arrayfunction12(letterPositions): find the first index in an arrayfunction13(map): find the head, tail, and middle index in an arrayfunction14(middle): find the middle index in an arrayfunction15(tail): find the last index in an arrayfunction16(takeUntil): take the indices in an array until a specific commandfunction17(without): take one specific index out of an array