# @gaalit/lotide

> A Clone of Lodash used to practice writting JavaScript functions

Latest version **1.0.0** (published 2021-01-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install @gaalit/lotide
pnpm add @gaalit/lotide
yarn add @gaalit/lotide
bun add @gaalit/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 | 2021-01-12 |
| First published | 2021-01-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Galit Gerasimov |
| Maintainers | gaalit |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2021-01-12

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertArraysEqual`: function that verifies if two given arrays are equal
* `assertEqual`: function that verifies wheter two values are equal and are of the same data type
* `assertObjectsEqual`: function that verifies if two given objects are equal
* `countLetters`: function that outputs the amount of times each letter in a given string appears
* `countOnly`: function that specifies what string should be counted and then output's it's length
* `eqArrays`: function that verifies if two arrays are perfectly equal
* `eqObjects`: function that verifies if two objects are perfectly equal
* `findKey`: function that filters an object and outputs the first key for which the callback function outputs true
* `findKeyByValue`: function that filters an object and outputs the first key that contains the given value.
* `head`: function that filters an array and returns the first element of that array (index 0)
* `letterPositions`: function that filters an object and outputs all the indices in the string where each character is found.
* `map`: function that take in an array and performs a specific manipulation on each element and then outputs a new array
* `middle`: function that outputs the middle of a given array
* `tail`: function that outputs all the elements of an array except for the firs element (index 0)
* `takeUntil`: function that slices an array starting from the beggining up until a specified ending point
* `without`: function that removes desired elements from an array

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