# @kryxsoo/lotide

> A simple version of LoadAshe (https://loadash.com)

Latest version **1.0.1** (published 2023-04-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install @kryxsoo/lotide
pnpm add @kryxsoo/lotide
yarn add @kryxsoo/lotide
bun add @kryxsoo/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 | 2023-04-13 |
| First published | 2023-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 13.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mathew Charm |
| Maintainers | kryxsoo |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.1 (latest) — 2023-04-13
- 1.0.0 — 2023-04-13

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:


*`head`: returns the first element of an array

*`tail`: returns the last element of an array

*`middle`: returns the middle element(s) of an array

*`assertEqual`: compares two primitive values and returns true if they are equal

*`eqArrays`: compares two arrays and returns true if they are equal

*`assertArraysEqual`: compares two arrays and returns true if they are equal

*`assertObjectsEqual`: compares two objects and returns true if they are equal

*`countLetters`: takes a string as input and returns an object that indicates how many times each letter appears in the *string

*`countOnly`: takes a collection of items and returns a count for a specific subset of those items

*`findKey`: takes an object and a callback function, and returns the first key for which the callback function returns a truthy value

*`findKeyByValue`: takes an object and a value, and returns the first key that contains the value

*`map`: takes an array and a callback function, and returns a new array based on the results of the callback function

*`takeUntil`: takes an array and a callback function, and returns a new array with elements until the callback function returns true

*`without`: takes a source array and an itemsToRemove array, and returns a new array with elements from the source array that are not in the itemsToRemove array

*`letterPositions`: takes a string as input and returns an object that lists all the indices where each character appears in the string.

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