# @alisonhussey/lotide

> A clone of lodash

Latest version **1.0.0** (published 2020-12-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install @alisonhussey/lotide
pnpm add @alisonhussey/lotide
yarn add @alisonhussey/lotide
bun add @alisonhussey/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-12-06 |
| First published | 2020-12-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 19.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alison Hussey |
| Maintainers | alisonhussey |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2020-12-06

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head`: function to retrieve the first element from the array
* `tail`: function to return every element except the head of the array.
* `middle`: function to return an array with only the middle element(s) of the provided array
* `assertArraysEqual`: function for asserting that two arrays are equal
* `assertEqual`: function for asserting that two outputs are equal
* `eqArrays`: function to compare two arrays for a perfect match
* `assertObjectsEqual`: function for asserting that two objects are equal
* `countOnly`: function takes in a collection of items and returns counts for a specific subset of those items
* `countLetters`: function takes in a sentence (as a string) and returns a count of each of the letters in that sentence
* `eqObjects`: function to compare two objects for a perfect match
* `findKey`: function to scan an object and return the first key for which the callback returns a truthy value.
* `findKeyByValue`: function searches for a key on an object where its value matches a given value
* `letterPositions`: function returns all the indices in the string where each character is found
* `map`: iterates its elements in insertion order and returns an array of [key, value] for each iteration.
* `only`: function iterates through an object and returns only those items that match what we're looking for.
* `takeUntil`:  function returns a slice of an array with elements taken from the beginning, until the callback returns a truthy value
* `without`: function to filter our data by removing some unwanted items

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