# @jolduca/lotide

> A recreation of lodash for learning purposes

Latest version **0.9.0** (published 2022-01-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jolduca/lotide
pnpm add @jolduca/lotide
yarn add @jolduca/lotide
bun add @jolduca/lotide
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2022-01-17 |
| First published | 2022-01-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joshua Loduca |
| Maintainers | jolduca |

## Links

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

## Recent versions

- 0.9.0 (latest) — 2022-01-17
- 0.1.0 — 2022-01-17

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head(...)`: gets the first element of an array
* `tail(...)`: gets everything BUT the first element of an array
* `middle(...)`: gets the middle of odd and even arrays
* `countLetters(...)`: counts the amount of chars in a string
* `letterPositions(...)`: Gets the positions of every letter of a string and returns an object
* `countOnly(...)`: Goes through an array of strings and counts only desired strings
* `flatten(...)`: takes an array of elements and arrays and returns 1 total array containing all elements
* `without(...)`: takes an array source and array of elements to remove from source. returns a copy of source array without elements from 2nd array
* `takeUntil(...)`: takes an array and callback. Goes through array and sends each item to the callback. if callback returns false, adds element to an array. Otherwise, if returns true, will stop and return array of items that returned false upto that point
* `map(...)`: Returns an array after manipulating each element using the provided callback
* `findKeyByValue(...)`: takes an object and finds the first key that has the same value as provided
* `findKey(...)`: takes an object and finds the first key that is the same as provided
* `eqObjects(...)`: takes two objects and returns if they are the same or not.
* `eqArrays(...)`: takes two arrays and returns if they are the same or not.

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