# @mariakhandaker/lotide2

> lotide assignment Lighthosue Labs August 23/2020

Latest version **1.0.0** (published 2020-08-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install @mariakhandaker/lotide2
pnpm add @mariakhandaker/lotide2
yarn add @mariakhandaker/lotide2
bun add @mariakhandaker/lotide2
```

## 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-08-25 |
| First published | 2020-08-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mariakhandaker |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2020-08-25

## 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 @mariakhandaker/lotide2`
**Require it:**
`const _ = require('@mariakhandaker/lotide2');`
**Call it:**
`const results = _.tail([1, 2, 3]) // => [2, 3]`

## Documentation
The following functions are currently implemented:
* `assertEqual(...)`: asserts that two values are equal
* `assertArraysEqual(...)`: asserts that two arrays are equal
* `assertObjectsEqual(...)`: asserts that two objects are equal
* `countLetters(...)`: counts how many instances of each letter occur in a string
* `countOnly(...)`: counts only instances of what you request it to
* `eqArrays(...)`: checks if two arrays are equal
* `eqObjects(...)`: checks if two objects are equal
* `findKey(...)`: find key in an object by looping through keys
* `findKeyByValue(...)`: find key in object by looping through values and returning key if value is found
* `head(...)`: find first element of array
* `letterPositions(...)`: finds indexes of each letter
* `map(...)`: applies a function onto an array
* `middle(...)`: find middle element(s) of an array
* `tail(...)`: find last element of an array
* `takeUntil(...)`: takes elements from array until callback
* `without(...)`: takes elements from array except for the ones specified

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