1.0.0 • Published 2 years ago
@josuevalo/lotide v1.0.0
Lotide
A mini clone of the Lodash(https: /lodash.com) 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 @josuevalo/lotide
*Require it:
function _ : finds
('@josuevalo/lotide');
*Call it:
function results : _.tail([1, 2, 3]) // => [2, 3]
Documentation
The following functions are currently implemented:
- function head : finds the head of an array
- function tail : finds the tail of the array
- function middle : finds the middle of the array
- function assertArraysEqual : asserts arrays
- function assertEqual : asserts functions
- function assertObjectsEqual : asserts objects
- function countLetters : counts letters
- function countOnly : only counts
- function eqArrays : tests arrays
- function eqObject : tests objects
- function findKey : finds keys
- function findKeyByValue : finds by value
- function letterPositions : finds positions
- function map : uses map function
- function takeUntil : takes until
- function without : finds without
1.0.0
2 years ago