# @jasonmac123/lotidever2

> A myriad of functions to manipulate arrays and strings to return specified elements/counting Objects/and altering arrays

Latest version **1.0.1** (published 2023-01-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jasonmac123/lotidever2
pnpm add @jasonmac123/lotidever2
yarn add @jasonmac123/lotidever2
bun add @jasonmac123/lotidever2
```

## 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-01-16 |
| First published | 2023-01-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jason Mac m.jason.2018@gmail.com |
| Maintainers | jasonmac123 |

## Links

- npm: https://www.npmjs.com/package/@jasonmac123/lotidever2
- Repository: https://github.com/JasonSnow123/LotideVer2
- Homepage: https://github.com/JasonSnow123/LotideVer2#readme
- Issues: https://github.com/JasonSnow123/LotideVer2/issues
- npm.io page: https://npm.io/package/@jasonmac123/lotidever2

## Recent versions

- 1.0.1 (latest) — 2023-01-16
- 1.0.0 — 2023-01-16

## 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 @JasonSnow123/LotideVer2`

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head(array)`: finds the first element of the array
* `middle(array)`: finds the middle element of the array, if there is even number then the middle two
* `tail(array)`: find the last element of the array
* `flatten(array)`: reduces nested array elements into one single array
* `takeuntil(array, condition)`: keeps adding elements from the array until condition is meet
* `countLetters(word)`: returns an object that contains the count for each letter in word
* `findKey(object, callback)`: returns the key within an object that satisfies the callback function
* `countOnly(items, condition )`: counts the items that satisfy the condition and return undefined for objects that are not found
* `without(array, removeItems)`: returns a copy of the array with items removed that satisfy the removeItems condition
* `map(array, callback)`: alters each element of the array by the callback function used

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