# @ibrahim236/lotide

> A mini clone of the [Lodash](https://lodash.com) library.

Latest version **1.0.0** (published 2021-12-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ibrahim236/lotide
pnpm add @ibrahim236/lotide
yarn add @ibrahim236/lotide
bun add @ibrahim236/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 | 2021-12-06 |
| First published | 2021-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ibrahim Mohamed |
| Maintainers | ibrahim236 |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2021-12-06

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

**Require it:**

`const _ = require('ibrahim236/lotide');`

**Call it:**

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

## Documentation

The following functions are currently implemented:

- `assertArrayEqual(...)`: Compares arrays and logs the results as pass/fail
- `assertEqual(...)`: It compares two values and returns an assertion for equality
- `assertObjectsEqual(...)`: It compares two objects and returns a boolean for equality
- `countLetters(...)`: Returns the number of occurrences of a letter
- `countOnly(...)`: countOnly will be given an array and an object. It will return an object containing counts of everything that the input object listed.
- `eqArrays(...)`: compares two arrays for strict equality
- `eqObjects(...)`: compares two objects for strict equality
- `findKey(...)`: finds a specified key in an object
- `findKeyByValue(...)`: find key(s) that have a specified value
- `head(...)`: Returns the first element of an array
- `letterPositions(...)`: Maps each letter to a key and stores its index position(s) in an array from a given string
- `map(...)`: maps an array into a new array
- `middle(...)`: Grabs the middle element of an array, in the case of even length arrays, grabs the middle two elements
- `tail(...)`: returns all elements of an array except the first one
- `takeUntil(...)`: It applies a callback function to each element of the object
- `without(...)`: return a subset of a given array, removing unwanted elements

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