# @jkadman/lotide

> a lodash clone called lotide I made while doing the webflex bootcamp at Lighthouse Labs

Latest version **1.0.1** (published 2022-11-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install @jkadman/lotide
pnpm add @jkadman/lotide
yarn add @jkadman/lotide
bun add @jkadman/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 | 2022-11-10 |
| First published | 2022-11-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jason Kadman |
| Maintainers | jkadman |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2022-11-10
- 1.0.0 — 2022-11-10

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

**Require it:**

`const _ = require('jkadman/lotide');`

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `countOnly`: Given an array of elements and an object of which elements are truthy, will return an object with only the truthy elements and the amount of times those   elements appear in the array 
* `eqObjects`: Give two objects with the same key value pairs (in any order), will return true if they are equal or not
* `flatten`: will flatten a multi-dimensional array to a one dimensional array
* `head`: will remove and push to a new array the first element of an array
* `tail`: will remove and push to a new array all elements but the first of an array
* `letterPositions`: will return the index of each letter in a string
* `findKeyByValue`: when given an object, can find a key for a value or a value for a key
* `eqArrays`: when given two equal arrays, will assert those arrays equal (requires exact match of elements)
* `middle`: will return the middle element of an odd array of integers or two middle elements of an even array of integers

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