# @jasondi/lotide

> This project lotide was created and published by Jason Di as part of learnings at Lighthouse Labs

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

## Install

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

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-08-02

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:


* `function assertArraysEqual(...)`: assert 2 arrays if equal or not
* `function assertEqual(...)`: assert 2 parameters (num, string, ... etc.) if equal or not
* `function assertObjectsEqual(...)`: assert 2 objects if equal or not
* `function countLetters(...)`: count letters in a string
* `function countOnly(...)`: take 2 parameters, count only as the second parameter requires
* `function eqArrays(...)`: compare 2 arrays if equal or not
* `function eqObjects(...)`: compare 2 objects if equal or not
* `function findKey(...)`: take 1 object, 1 callback function, find the key in the object based on the output value from the callback function
* `function findKeyByValue(...)`: take 1 object, 1 value, find the key in the object that has the same value as the second parameter
* `function head(...)`: find the 1st element in an array
* `function letterPositions(...)`: find the letter index in a string
* `function map(...)`: take 1 array, 1 callback function, return a new array based on calling the callback function
* `function middle(...)`: find all the middle elements in an array
* `function tail(...)`: find the last element in an array
* `function takeUntil(...)`: take 1 array, 1 callback function, find all matched elements in the array based on calling the callback function

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