1.0.1 • Published 2 years ago

@jacqlinegeng/lotide v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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 @jacqlinegeng/lotide

Require it:

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

Call it:

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

Documentation

The following functions are currently implemented:

  • function1(assertEqual): test assertion
  • function2(assertArraysEquals): test assertion of arrays
  • function3(assertObjectsEqual): test assertion of objections
  • function4(countLetters): count letters in a string
  • function5(countOnly): count item
  • function6(eqArrays): test to see if the arrays are the same
  • function7(eqObjects): test to see if the objects are the same
  • function8(findKey): find the keys in an object
  • function9(findKeyByValues): find the key in an object by their values
  • function10(head): find the first item in an array
  • function11(index): find the first item in an array
  • function12(letterPositions): find the first index in an array
  • function13(map): find the head, tail, and middle index in an array
  • function14(middle): find the middle index in an array
  • function15(tail): find the last index in an array
  • function16(takeUntil): take the indices in an array until a specific command
  • function17(without): take one specific index out of an array