# @neavy/lotide

> LHL lotide library

Latest version **1.0.0** (published 2021-11-30) · ISC license · 0 weekly downloads

## Install

```sh
npm install @neavy/lotide
pnpm add @neavy/lotide
yarn add @neavy/lotide
bun add @neavy/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 | 2021-11-30 |
| First published | 2021-11-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Genevieve/ Neavy / Grandmont Touchette |
| Maintainers | neavy |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2021-11-30

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

**Require it:**

` const_ = require('@neavy/lotide');`

**Call it:**

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

## Documentation

The following functions are currently implemented:

 head : retrieve first element of an array
 tail : retrieve every element of the array except the first one
 middle : return the middle-most element(s) of an array
 assertArraysEqual: compare two arrays and prints out a pass or fail message
 assertEqual : compare two values and prints out a pass or fail message
 assertObjectsEqual : compare two objects and prints out a pass or fail message
 countLetters : count how many times a letter appears in a given string
 countOnly : count how many times a given string appears in an object
 eqArrays : compare two arrays
 eqObjects : compare two objects
 findKeyByValue : find a key in an object by value
 findKeys : return the first key in an object that proves truthy based on the callback function
 letterPositions : return all the indices in a string where each character is found
 map : my own versionv of the map function
 takeUntil : take and return a slice of a given array with elements taken before the second argument
 without : removes a given element from an array

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