Skip to content

tofi-124/lotide

Repository files navigation

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

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • function1(assertArraysEqual): compares and asserts two arrays
  • function2(assertEqual): compares two given inputs and assersts
  • function3(countLetters): counts instances of that letter in the given word
  • function4(countOnly): count the instances of given names in a given array of names
  • function5(eqArrays): compares two arrays
  • function6(eqObjects): compares two objects
  • function7(findkey): returns the key to an object where the number is given
  • function8(findKeyByValue): return the name of the movie in a given genere
  • function9(flatten): returns flattened array
  • function10(letterPositions): returns the position of letter in a string
  • function11(map): this will return a new array based on the results of the callback function.
  • function12(map2): Implemention of map 2
  • function13(middle): returns middle of array

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published