1.0.0 • Published 4 years ago

@honeyyusuf/lotide-test v1.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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

Require it:

const _ = require('@honeyyusuf/lotide-test');

Call it:

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

Documentation

The following functions are currently implemented:

  • assertArrays(...): check the out put arrat functon with the expected value
  • assertEqual(...): check the out put with the expected value
  • countletter(...): count the letter
  • countOnly(...): count the value
  • eqArrays(...): check if the arrays are equal
  • findKey(...): find the object with a callback function
  • findKeyByValue(...): find the object with a give value
  • head(...): finds the head of array
  • index(...): contains the module for head , middel and tail function
  • letterPositions(...): find the index of a letter
  • map(...): map the array with a callbackfuncion
  • middle(...): find the middle of the array
  • tail(...): finds the tail of array
  • takeUntil(...): output in array until a specifie value
  • without(...): removes a value from array