1.0.0 • Published 3 years ago

@mariajs10/lotidev2 v1.0.0

Weekly downloads
1
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 @mariajs10/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • assertArraysEqual(...): helps validate comparison between 2 arrays with a easily understanble printing statement
  • assertObjectsEqual(...): helps validate comparison between 2 objects with a easily understandable printing statement
  • countOnly(...): gives the count of letters in a given string
  • findKey(...): findes the key for the given key from the object
  • halloween(...): removes the asked umbers from the orginal array andreturns with the rmeoved items
  • countOnly(...): gives the count of letters in a given string
  • reversestring(...): reverses the given string
  • takeUntil(...): splices the arry until the given eleent is reached in the array
  • middle(...): returns array with the middle most element in the original array
  • countOnly(...): gives the count of letters in a given string
  • map(...): does a certain function on the given array ad returns the answer in a new array
  • head(...): returns the 1st element in the given array
  • tail(...): returns the last element in the array
  • findKeybyVlaue(...): returns the key from the object by comparing the value given in the uestion with the different values and the returning the key