# @ahmedabdallh/lotide

> A mimic version of lodash with more visula output

Latest version **1.0.0** (published 2021-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ahmedabdallh/lotide
pnpm add @ahmedabdallh/lotide
yarn add @ahmedabdallh/lotide
bun add @ahmedabdallh/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-11-28 |
| First published | 2021-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ahmed Abdallh |
| Maintainers | ahmedabdallh |
| Keywords | lodash, learning |

## Links

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

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2021-11-28

## README

# Lotide

A mini clone of the [Lodash](https://lodash.com) library. Created as a part of bootcamp work.

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

- `head`: retruns the first element in an array
- `middle`: retruns the middle element in an array
- `map`: implement a callback function provided as an argument over each element in the given array
- `assertEqual`: fancier assert function than the builtin assert
- `assertArraysEqual`: customize version of assertEqual function to work with arrays
- `countOnly`: returns a count for specific item in the given input
- `eqArrays`: checks if two arrays are equal
- `eqObjects`: checks if two objects are equal
- `findKey`: returns the first element it founds with the provided key
- `findKeyByValue`: returns the first element it founds with the provided value
- `without`: returns an array without the specific elements that has been set to be removed
- `takeUntil`: Creates a portion of array with elements taken from the beginning.
- this libarary has been tested with "chai": "^4.3.4", "mocha": "^9.1.3"

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