# @c1ar3nc3/lotide

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

Latest version **1.0.0** (published 2020-11-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @c1ar3nc3/lotide
pnpm add @c1ar3nc3/lotide
yarn add @c1ar3nc3/lotide
bun add @c1ar3nc3/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 | 2020-11-30 |
| First published | 2020-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Clarence Williams |
| Maintainers | c1ar3nc3 |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2020-11-30

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertArraysEqual(...)`: assertion check for eqArrays
* `assertObjectsEqual(...)`: assertion check for eqObjects
* `assertEqual(...)`: uses strict comparison on two values
* `countLetters(...)`: take in a string and then return a count of each of the letters in that string
* `countOnly(...)`: takes in a collection of items and return counts for a specific subset of those items
* `eqArrays(...)`: calls eqArrays and returns a message to console if arrays are the same
* `eqObjects(...)`: function that can compare two arrays for a perfect match.
* `findKey(...)`: checks if key exists in object
* `findKeyByValue(...)`: which takes in an object and a value. It will scan the object and return the first key which contains the given value. If no key with that given value is found, then it willreturn undefined.
* `head(...)`: returns the first element of an array
* `letterPositions(...)`: return all the indices (zero-based positions) in the string where each character is found.
* `map(...)`: The map function will return a new array based on the results of the callback function.
* `middle(...)`: Returns the middle value of an array. If array is even, returns the middle two.
* `tail(...)`: Returns an array with the first element removed
* `takeUntil(...)`: The function will return a "slice of the array with elements taken from the beginning." It will keep going until the callback/predicate returns a truthy value.
* `without(...)`: Removes unwanted items from an array

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