1.0.3 • Published 3 years ago

@zezking/lotide v1.0.3

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

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • head(...): Return the first index of an array
  • tail(...): Return every index but the first index of an array
  • middle(...): Return the middle number of an array of numbers
  • flatten(...): Flatten nested array and Return a single array of all the values
  • eqArray(...): Check if two arrays are equal
  • eqObjects(...): Check if two objects are equal
  • countOnly(...): count how many times a key has appeared and which key user want to search
  • findkeyByValue(...): Return a key that match the value of user input
  • LetterPositions(...): Return of an array of postions of the letter you want to search
1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago