# @jhein1892/lotide

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

Latest version **1.0.1** (published 2021-01-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jhein1892/lotide
pnpm add @jhein1892/lotide
yarn add @jhein1892/lotide
bun add @jhein1892/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.1 |
| Published | 2021-01-12 |
| First published | 2021-01-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jhein1892 |
| Maintainers | jhein1892 |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2021-01-12
- 1.0.0 — 2021-01-11

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head`: will find the value at index 0
* `tail`: Will return values for everything but index 0 
* `middle`: Will return the middle values for an array. E.g [1,2,3] will return '2'
* `assertArrayEqual`: Will assert if two arrays are the exact same
* `assertEqual`: will determine if two strings are the same
* `assertObjectEqual`: will assert if two objects are the same
* `countLetters`: Will count the number of letters in a string, not includeing spaces
* `countOnly`: Will count only the values that are specified
* `eqArrays`: Will determine whether two arrays are the same
* `eqObjects`:  will determine whether two objects are equivalent
* `findKey`: Will find the value within a key
* `findKeyByValue`: Will find a key using a value and an object
* `flatten`: Will take a nested array and return a single level array
* `letterPositions`: Will find the index positions of a given letter within a string
* `map`: Will apply a given set of instructions to each element in an array 
* `min`: will return the smallest value in an array
* `takeUntil`: Will return all values until a given value us reached
* `without`: Will return an array with the given values excluded from it.

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