# @katebatrakova/lotide

> A mini clone of the [Lodash](https://lodash.com) library.

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

## Install

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

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.0 (latest) — 2020-06-30

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

- `function1(head)`: returns the first element of the array
- `function2(tail)`: returns the last element of the array
- `function3(middle)`: returns the middle-most element(s) of the given array
- `function4(without)`: returns a subset of a given array, removing unwanted elements
- `function5(takeUntil)`: returns a slice of array with elements taken from the beginning. It will keep collecting items from a provided array until the callback (predicate) provided returns a truthy value. The predicate is invoked with three arguments: (value, index, array)
- `function6(map)`: returns a new array based on the results of the callback function, which will be called for each element in the array
- `function7(letterPositions)`: returns all the indices (zero-based positions) in the string where each character is found
- `function8(findKeyByValue)`: takes in an object and a value. It scans the object and returns the first key which contains the given value. It returns undefined if no key with the given value is found.
- `function9(findKey)`: scans the object and returns the first key for which the callback returns a truthy value. If no key is found, then it should return undefined
- `function10(eqObjects)`: takes in two objects and returns true or false, based on a perfect match
- `function11(eqArrays)`: takes in two arrays and returns true or false, based on a perfect match
- `function12(countOnly)`:takes in a collection of items and return counts for a specific subset of those items. In order to decide what to count, items we care about are 'truthy' and it will only count those, ignoring the others
- `function13(countLetters)`: takes in a sentence (as a string) and returns a count of each of the letters in that sentence

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