# @lucaswong17/lotide

> An assortment of functions with varying roles

Latest version **1.0.0** (published 2020-05-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install @lucaswong17/lotide
pnpm add @lucaswong17/lotide
yarn add @lucaswong17/lotide
bun add @lucaswong17/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 | 2020-05-05 |
| First published | 2020-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | lucaswong17 |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2020-05-05

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `countLetters`: A function that counts the amount a single letter in a string 
* `countOnly`: A function that takes two arrays as parameters and counts specific letters in 1st array
* `head`: A function that returns the first element of an array
* `tail`: A function that returns everypart of the array except the first index
* `middle`: A function that returns the middle number/numbers of an array
* `eqArrays`: A function that returns true/false depending if the given arrays are stictly equal
* `eqObjects`: A function that returns true/false depending if the given objects are equal(non-strict)
* `findKey`: A function that takes a stopping conditon callback function and loops through an object 
* `findKeyByValue`: A function that finds a key of an objects property by its value
* `flatten`: A function that takes away layers of a nested array 
* `letterPositions`: A function that returns the index of each letter in a given string
* `map`: A map like function that loops through an array and takes a callback function
* `takeUntil`: A function that loops through an array an stops when a callback functions says to stop
* `without`: A function that removes determined elements from a given array

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