# @jaysands/lotide

> A miniature clone of the Lodash library for learning purposes at Lighthouse Labs.

Latest version **1.0.3** (published 2023-02-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jaysands/lotide
pnpm add @jaysands/lotide
yarn add @jaysands/lotide
bun add @jaysands/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.3 |
| Published | 2023-02-03 |
| First published | 2023-01-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jay Sanders |
| Maintainers | jaysands |

## Links

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

## Recent versions

- 1.0.3 (latest) — 2023-02-03
- 1.0.2 — 2023-02-02
- 1.0.1 — 2023-02-02
- 1.0.0 — 2023-01-09

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

**Require it:**

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

**Call it:**

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


## Documentation

The following functions are currently implemented:

* `assertEqual(actual, expected)`: comparing the actual and expected values, print out message to show if they are same or not
* `assertArraysEqal(array1, array2)`: comparing array1 and array2, print out message to show if they are same or not-
* `assertObjectsEqual(actual, expected)`: comparing object1 and object2, print out message to show if they are same or not-
* `eqArrays(array1, array2)`: returns true if array1 has same elements as array2, otherwise, return false-
* `eqObjects(object1, object2)`: returns true if object1 has same properties as object2, otherwise, return false-
* `countLetters(string)`: return an object with the occurance of each letter-
* `countOnly(allItems, itemsToCount)`: returns an object that count the items from allItems if it exists in itemsToCount with a true value-
* `findKey(object, callback)`: return the key that has a value satisfying the call back function-
* `findKeyByValue(object, value)`: return the key by value-
* `head(array)`: returns the head of array-
* `middle(array)`: returns middle of array-
* `tail(array)`: returns tail of array-
* `flatten(array)`: returns the flattened the array-
* `map(array, callback)`: returns an array that satisfies the callback function-
* `letterPositions(string)`: returns an array of the position(s) of input letter(s)-
* `takeUntil(array, callback)`: returns an array that contains all elements before the callback function is satisfied-
* `without(sourceArray, itemsToRemoveArray)`: returns an array of source without the elements itemToRemove-

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