1.0.0 • Published 2 years ago

@iezike/lotide v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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, Ikenna, as part of my learnings at Lighthouse Labs.

Usage

Install it:

npm install @iezike/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • function1(head): description: outputs the first element in an array.
  • function2(tail): description: removes first element from an array and outputs the reminder array.
  • function3(middle): description: Outputs an array with the middle element(s)
  • function3(assertEqual): description: Returns either true of false where values match
  • function3(assertArraysEqual): description: Returns either true of false where arrays match
  • function3(assertObjectsEqual): description: Returns either true of false where objects match
  • function3(countLetters): description: Counts the numbers of letters in a string
  • function3(countOnly): description
  • function3(eqArrays): description
  • function3(findKeyByValue: description: Returns the key whose value matches a given value.
  • function3(letterPositions): description
  • function3(map): description
  • function3(takeUntil): description: Creates a new array from a given array until a given conditions fails
  • function3(without): description