# @harrishs/lotide

> Library of functions modelled after lodash completed for use in Lighthouse Labs Development Bootcamp

Latest version **1.0.0** (published 2019-08-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install @harrishs/lotide
pnpm add @harrishs/lotide
yarn add @harrishs/lotide
bun add @harrishs/lotide
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-08-26 |
| First published | 2019-08-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Harrish Suhumar |
| Maintainers | harrishs |

## Links

- npm: https://www.npmjs.com/package/@harrishs/lotide
- Repository: https://github.com/harrishs/lotide
- Homepage: https://github.com/harrishs/lotide#readme
- Issues: https://github.com/harrishs/lotide/issues
- npm.io page: https://npm.io/package/@harrishs/lotide

## Recent versions

- 1.0.0 (latest) — 2019-08-26

## README

# 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 @harrishs/lotide`

**Require it:**

`const _ = require('@harrishs/lotide');`

**Call it:**

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

## Documentation

The following functions are currently implemented:

- `assertArraysEqual(arr1, arr2)`: Assert whether two arrays are equal
- `assertEqual(actual, expected)`: Assert whether two values are equal
- `assertObjectsEqual(actual, expected)`: Assert whether two objects are equal
- `countLetters(items)`: Count number of letters in each instance
- `countOnly(allItems, items)`: Return count of specified item from a set of items
- `eqArrays(arr1, arr2)`: Compare 2 arrays and check if equal
- `eqObjects(obj1, obj2)`: Compare 2 objects and check if equal
- `findKeyByValue(key, val)`: Find key of given value
- `findKey(obj, callback)`: Find key where callback function gives truthy value
- `flatten(arr)`: Remove nesting from arrays
- `head(arr)`: Returns first value of array
- `letterPosition(sentence)`: Return index of of letters in sentence
- `map(array, callback)`: Put values of array through a callback function
- `middle(arr)`: Returns middle value or middle 2 values if even of an array in an array
- `tail(arr)`: Return all but first value of array
- `takeUntil(arr, callback)`: Return array of items until callback function becomes true
- `without(arr, remove)`: Return new array after removing unwanted items from given array

---
_Source: https://npm.io/package/@harrishs/lotide · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
