1.0.0 • Published 4 years ago
@alexandra-npm/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 @alexandra-npm/lotide
Require it:
const _ = require('@alexandra-npm/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
function1(head): to separate the first indexfunction2(tail): to get the array minus the first indexfunction3(middle): to get the middle one or two indexes of an arrayfunction3(without): to ensure arrays are the samefunction3(assertArraysEqual): to ensure two arrays are equalfunction3(assertEqual): to ensure two parameters are equalfunction3(assertObjectsEqual): to ensure two objects are equalfunction3(countLetters): to count letters in a stringfunction3(countOnly): to count only specific itemsfunction3(eqArrays): to ensure two arrays are equalfunction3(eqObjects): to ensure two objects are equalfunction3(findKey): to find a kay within an objectfunction3(findKeyByValue): to find a key when given its valuefunction3(letterPositions): to find the position of specific letters within a parameterfunction3(map): to map out an arrayfunction3(takeUntil): to take specific information until the requirements are no longer met
1.0.0
4 years ago