# @brendanzfunk/lotide

> a smaller copy of lodash

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

## Install

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

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-02-15

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertArrayEqual(array,array)`: console logs the result of eqArrays
* `assertEqual(value,value)`: checks if two things are equal and console logs the output
* `assertObjectsEqual(object,object)`: console.logs the output of eqObjects
* `countLetters(string)`: counts the amount of times letters appear in a string
* `countOnly(object,object)`: counts values in an object, only what is specified
* `eqArrays(array,array)`: check if arrays are equal
* `eqObjects(object,object)`: checks if two objects are equal
* `findKey(object,function)`: finds the key of an object based on a callback function
* `findKeyByValue(object,value)`: returns the key of an object by its value
* `flatten(array)`: takes a multi dimensional array and condenses it into traditional array
* `head(array)`: gets the first element of an array
* `letterPositions(string)`: returns an object of all the positions a letter has shown up in a string
* `map(array,function)`: loops through an array pushing items into a new array based on callback function
* `middle(array)`: get middle values of an array
* `tail(array)`: returns an array of everything but the head of the array
* `takeUntil(array,function)`: goes through an array pushing items into a new array until the condition of the callback is met
* `without(array,array)`: returns new array without the matching terms in the second array

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