# @teknoboten/lotide

> a very cool clone of lodash

Latest version **1.0.0** (published 2022-02-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @teknoboten/lotide
pnpm add @teknoboten/lotide
yarn add @teknoboten/lotide
bun add @teknoboten/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 | 2022-02-16 |
| First published | 2022-02-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | serra boten |
| Maintainers | teknoboten |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-02-16

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head(...)`: return the first element of an array
* `tail(...)`: return everything but the head of an array
* `middle(...)`: return the middle element(s) of an array
* `assertArraysEqual(...)`: check for equality between two arrays and log result to console
* `assertEqual(...)`: check for equality between two values and log result to console
* `eqArrays(...)`: checks for equality between two arrays and returns true / false
* `countLetters(...)`: counts how many times every letter in a string occurs
* `countOnly(...)`: counts only the desired elements in an array
* `assertObjectsEqual(...)`: check for equality between two objects and log result to console
* `findKey(...)`: find and return the key of a given value within an object
* `findKeyByValue(...)`: find and return the value of a given key within an object
* `flatten(...)`: flatten two dimensional arrays (more dimensions pending)
* `letterPositions(...)`: counts at which indexes letters occur within a given string and returns an object
* `map(...)`: performs a given callback on every element in a array and returns a new array
* `takeUntil(...)`: pushes every element in an array to a new array until the given callback returns turn
* `without(...)`: filters items in a given array1 from array2 and returns a new array
* `eqObjects(...)`: checks for equality between two arrays and returns true / false

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