1.0.0 • Published 3 years ago

@padma2code/lotide v1.0.0

Weekly downloads
2
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 @padma2code/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • function1(assertEqual): This Function is to compare 2 Strings and logs the result to the console.
  • function2(assertArraysEqual): This Function is to compare 2 Arrays and logs the result to the console.
  • function3(assertObjectsEqual): This Function is to compare 2 objects and logs the result to the console.
  • function3(eqArrays): This Function is to compare 2 arrays and returns truthy or falsey.
  • function3(eqObjects): This Function is to compare 2 objects and returns truthy or falsey.
  • function3(countOnly): This Function is to count and return the number of times a string is repeated in a given array.
  • function3(countLetters): This Function is to ount and return the number of times a charecter is repeated in a given string.
  • function3(findKey): This Function is to find and return the key for a given value in an Object.
  • function3(findKeyByValue): This Function is to find and return the matching keys for a given value in an Object.
  • function3(index): This Function is to find and return the index value of a given value in an Object.
  • function3(takeUntil): This Function is to return the contents of an array until the specified condition is matched.
  • function3(letterPositions): This Function is to find and return the index values of given charecters in an array.
  • function3(loopyLightHouserefactor): This Function is to print loopy,Lighthouse, LoopLightHouse based on multiples of given numbers.
  • function3(reverse): This Function is to take multiple string cmdline arguments and returnt he reverse strings as output
  • function3(without): This Function is to look for a string in an array and returns all the items that didn't match with the string in the array .
  • function3(pig-latin): This Function is to take multiple strings and return them in piglatin.
  • function3(map): This Function is to map the given array and manipulate the elements with given logic.
  • function3(head): This Function is to return the first element in an array.
  • function3(middle): This Function is to return the middle element(s) in an array.
  • function3(tail): This Function is to return the last element in an array.