1.0.0 • Published 2 years ago

@alexandra-npm/lotide v1.0.0

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 @alexandra-npm/lotide

Require it:

const _ = require('@alexandra-npm/lotide');

Call it:

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

Documentation

The following functions are currently implemented:

  • function1(head): to separate the first index
  • function2(tail): to get the array minus the first index
  • function3(middle): to get the middle one or two indexes of an array
  • function3(without): to ensure arrays are the same
  • function3(assertArraysEqual): to ensure two arrays are equal
  • function3(assertEqual): to ensure two parameters are equal
  • function3(assertObjectsEqual): to ensure two objects are equal
  • function3(countLetters): to count letters in a string
  • function3(countOnly): to count only specific items
  • function3(eqArrays): to ensure two arrays are equal
  • function3(eqObjects): to ensure two objects are equal
  • function3(findKey): to find a kay within an object
  • function3(findKeyByValue): to find a key when given its value
  • function3(letterPositions): to find the position of specific letters within a parameter
  • function3(map): to map out an array
  • function3(takeUntil): to take specific information until the requirements are no longer met