Skip to content

cesconettoedu/lotide

Repository files navigation

Lotide

A mini clone of the [Lodash]https://lodash.com) 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 @cesconettoedu/lotide

Require it:

const _ = require'@cesconettoedu/lotide');

Call it:

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

Documentation

The following are currently implemented:

  • assertArraysEqualarr1, arr2);: compare two arrays for a perfect match.
  • assertEqual: get first item
  • assertObjectsEqual: compare obj
  • countLetters: return count of each of the letters in that sentence
  • countOnly: collection of items and return counts for a specific items
  • eqArrays: compare 2 arrays
  • eqObjects: Implement eqObjects comparing array data.
  • findKey: for em obj find key
  • findKeyByValue: scan the object, return first key which contains the given value
  • flatten: return a flattened version of the array.
  • head: get first item
  • index: exporting in one file update Shorthand
  • letterPositions: return string where each character is foundindice).
  • map: our own version of map
  • middle: take array, return the middle-most elements)
  • tail: remove item, not modify array original - update clean
  • takeUntil: return slice of the array with elements taken from the beginning
  • without: Return a given array, removing unwanted elements.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors