# @dreamxinxcode/lotide

> Clone of Lodash - Lighthouse Labs July 20 2020 cohort

Latest version **1.0.0** (published 2020-07-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @dreamxinxcode/lotide
pnpm add @dreamxinxcode/lotide
yarn add @dreamxinxcode/lotide
bun add @dreamxinxcode/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 | 2020-07-29 |
| First published | 2020-07-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 13.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brandon Lecky |
| Maintainers | dreamxinxcode |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2020-07-29

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertArraysEqual(arr, arr2)`: Assertions for comparing two array values for equality.
* `assertEqual(actual, expected)`: Assertions for comparing two non-array values for equality.
* `assertObjectsEqual(arr, arr2)`: Assertions for comparing two objects for equality.
* `countLetters(str)`: Returns an object containing the count of each character in a string.
* `countOnly(allItems, itemsToCount)`: Returns an object containing the count of a given character in a string.
* `eqArays(arr, arr2)`: Checks if two given arrays are equal.
* `eqObject(object1, object@)`: Checks if two given objects are equal.
* `findKey(object, callback)`: Returns the key of given value.
* `findKeyByValue(obj, value)`: Returns the key of given value.
* `head(arr)`: Returns the head of an array.
* `letterPositions(sentence)`: Returns an object with key/value pairs containing the positions of each character in a given string.
* `map(array, callback)`: Clone of .map() array method. Returns a new array.
* `middle(arr)`: Returns a subset containing the middle element(s) of a given array.
* `tail(arr)`: Returns the tail of a given array.
* `takeUntil(array, callback)`: Returns a slice of the array with elements taken from the beginning.
* `without(source, itemsToRemove)`: Returns a new array without specified values.

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