# @gascon-m/lotide

> This is a limited copy of the lodash library, with a few select functionalities. This was done as a first project at Lighthouse Labs.

Latest version **1.0.1** (published 2019-10-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install @gascon-m/lotide
pnpm add @gascon-m/lotide
yarn add @gascon-m/lotide
bun add @gascon-m/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 | 2019-10-21 |
| First published | 2019-10-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 14.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mikel Gascon |
| Maintainers | gascon-m |

## Links

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

## Dependencies (1)

- [chai](https://npm.io/package/chai.md) ^4.2.0

## Recent versions

- 1.0.1 (latest) — 2019-10-21
- 1.0.0 — 2019-10-21

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

**Require it:**

`const _ = require('@gascon-m/lotide');`

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head` : returns the first item of an array
* `tail` : returns all but the first item of an array
* `middle` : returns the middle item of the array, if the array is of even length, returns two items
* `assertArraysEqual` : formats a proper answer after using eqArrays
* `assertEqual` : check if two items are equal, does not work on arrays or objects (see assertArraysEqual or assertObjectEqual)
* `assertObjectEqual` : formats a proper answer after using eqObjects
* `countLetters` : count the letters in a string
* `countOnly` : counts the occurence of a specified item in an array of strings
* `eqArrays`: checks if two arrays are equal
* `eqObjects` : checks if two objects are equal
* `findKey` : returns the value with the specified key
* `findKeyByValue` : returns the key with the specified value
* `flatten` : returns a multiple-level array as a single level array
* `letterPositions` : takes a string and returns an object with letters as keys and values are the index at which the letters appear 
*  `maps` : accepts an array and a callback function and returns what was asked of the callback function 
* `takeUntil`: accepts an array and a callback function. Returns an array with all the values until the value of the callback function is reached.
* `without` : accepts an array and an item. Returns the array with the specified item removed from it.

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