# @baedoh/lotide

> mini clone of lodash library made as a project for Lighthouse Labs

Latest version **1.0.0** (published 2022-08-01) · ISC license · 0 weekly downloads

## Install

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

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-08-01

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertAraysEqual`: compares non-primitive arrays
* `assertEqual`: tests code to see if it's a pass or fail
* `assertObjectsEqual`: compares objects (with emoji visuals)
* `countLetters`: takes in a sentence (as a string) and returns a count of each letter in said sentence
* `countOnly`: takes in a collection of items and returns counts for a specific subset of said items
* `eqArrays`: compares arrays (primitive)
* `eqObjects`: compares objects 
* `findKey`: takes in an object and callback and returns the first key for which the callback returns a truthy value
* `findKeyByValue`: finds key on an object where its value matches a given value
* `head`: retrieves the first item of an array
* `letterPositions`: returns all indices in the string where each letter is found
* `map`: returns a new array based on results of the callback function
* `middle`: returns the middle value of an array with an odd number of indices, and the two middle values of an array with an even number of indices
* `tail`: retrieves every element in an array except the head
* `takeUntil`: returns a slice of an array with elements taken from the beginning
* `without`: removes unwanted items from data

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