# @nrpope/lotide

> Lotide mini clone Project for Lighthouse Labs

Latest version **1.0.1** (published 2020-02-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install @nrpope/lotide
pnpm add @nrpope/lotide
yarn add @nrpope/lotide
bun add @nrpope/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.1 |
| Published | 2020-02-11 |
| First published | 2020-02-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nick Pope |
| Maintainers | nrpope |
| Keywords | lotide |

## Links

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

## Dependencies (1)

- [chai](https://npm.io/package/chai.md) ^4.2.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-02-11
- 1.0.0 — 2020-02-10

## 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 (Nick Pope) as part of my learnings at Lighthouse Labs.

## Usage

**Install it:**

`npm install @nrpopelotide`

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

- `function1(head)`: requires an array as an argument and returns the first item in an array
- `function2(tail)`: requires an array as an argument and returns all but the first item of the array
- `function3(middle)`: requires an array as an argument
  --if array has odd length, it will return the middle item in an array
  --if array has even length, it will return the two middle items in an array
- `function4(assertArraysEqual)`: asserts that the actual and expected arrays are both equal
- `function5(eqArrays)`: equires an array as an argument and returns if they are of equal value
- `function6(head)`: requires an array as an argument and returns the last item in an array
- `function7(assertEqual)`: asserts that both the expected and the actual values are equal
- `function8(flatten)`: Given an array with other arrays inside, it can flatten it into a single-level array.
- `function9(countOnly)`: This function takes in a collection of items and return counts for a specific subset of those items.
- `function10(letterPositions)`: Will return all the indices (zero-based positions) in the string where each character is found.
- `function11(findKeyByValue)`: Takes in an object and a value. It scans the object and returns the first key which contains the given value. If no key with that given value is found, then it returns undefined.
- `function12(eqObjects)`: Will take in two objects and returns true or false, based on a perfect match.
- `function13(without)`: This function takes in a source array and a itemsToRemove array. It returns a new array with only those elements from source that are not present in the itemsToRemove array.

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