@arletvazquez/lotide
v1.0.0
Published
My lotide exercises Proudly made in the LightHouse Labs Bootcamp
Downloads
3
Readme
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 @arletvazquez/lotide
Require it:
const _ = require('@arletvazquez/lotide');
Call it:
const results = _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
assertArraysEqual( )
: for asserting that two arrays are equalassertEqual( )
: displays assertionsassertObjecstEqual( )
: compares two objectscountLetters( )
: returns count of each letter in sentencecountOnly( )
: returning object containing counts of everything it containseqArrays( )
: compares two arrays for a perfect matcheqObjects( )
: tests functions that return objectsfindKey( )
: compares by the keyfindKeyByValue( )
: scan the object and returns the first key which contains the given valuehead( )
: returns only the first object in an arrayletterPositions( )
: Function comparing two objectsmap( )
: returns new array based on the callback functionmiddle( )
: returns middle elements in arraytail( )
: returns all but the first element in arraytakeUntil( )
: shows objects in an array until truthy valuewithout( )
: returns subset of a given array, removing unwanted items