# @karendavtyan21/lotide

> functions library

Latest version **1.0.1** (published 2019-09-23) · ISC license · 0 weekly downloads

## Install

```sh
npm install @karendavtyan21/lotide
pnpm add @karendavtyan21/lotide
yarn add @karendavtyan21/lotide
bun add @karendavtyan21/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-09-23 |
| First published | 2019-09-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Karen Davtyan |
| Maintainers | karendavtyan21 |

## Links

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

## Dependencies (1)

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

## Recent versions

- 1.0.1 (latest) — 2019-09-23
- 1.0.0 — 2019-09-23

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `head(arr)`: Takes the first value out of an array
* `tail(arr)`: Takes all values except the first one out of an array
* `middle(array)`: Takes a middle value out of an array
* `countLetters(lettersToCount)` : Counts letters in a string
* `countOnly(allItems, itemsToCount)` : Counts the keys that you need in an object
* `findKey(object, callback)` : Finds a key that you need in an object
* `findKeyByValue(tvObject, tvShow)` : Finds a key in an object by value
* `flatten(array)` : Flattens multiple arrays that are within each other into one array
* `letterPosition(newSentence)` : Finds a letter position in a string
* `map(array, callback)` : Creates a new array with your function on how you want to change an array
* `takeUntil(array, callback)` : Takes items out of an object until you want it to stop
* `without(source, itemsToRemove)` : Makes a new array without a specific element
* `eqArrays(arr1, arr2)` : Checks if two arrays have the same value
* `eqObjects(object1, object2)` : Checks if two objects have the same value

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