1.0.0 • Published 3 years ago

@hufany21/lotide v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

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 @uhufany21/lotide

Require it:

const _ = require('@hufany21/lotide');

Call it:

const results = _.tail([1, 2, 3]) // => [2, 3]

Documentation

The following functions are currently implemented:

head: returns index 0 tail: return last two elements middle: find the middle of an array assertArrayEqual: checks if 2 arrays are equal assertEqual: checks if 2 strings are equal assertObjectsEqual: checks if 2 objects are equal countLetters: Counts letters in string countOnly: eqArrays: compares 2 arrays eqObjects: findKey: find the key of object findKeyByValue: find the ket using the value in an object letterPositions: map: takeUntil: take until certain part of array without: Prints without parameter