# @eegyudt/lotide

> Lightsouse Labs Student project: lotide collection of functions

Latest version **1.0.1** (published 2022-11-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install @eegyudt/lotide
pnpm add @eegyudt/lotide
yarn add @eegyudt/lotide
bun add @eegyudt/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 | 2022-11-22 |
| First published | 2022-11-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 26.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Eszter Egyud |
| Maintainers | eegyudt |

## Links

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

## Dependencies (1)

- [my-package](https://npm.io/package/my-package.md) 0.0.0

## Recent versions

- 1.0.1 (latest) — 2022-11-22
- 1.0.0 — 2022-11-22

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertArraysEqual(...)`: takes in two arrays and  their checking match, console.log an appropriate message to the console,
* `assertEqual(...)`: compares the two values and prints out a message if they match or not
* `assertObjectsEqual(...)`: take in two objects and  checking their match, console.log an appropriate message to the console
* `countLetters(...)`: returns a count of each of the letters in a sentence
* `countOnly(...)`: returns an object containing array elements and quantities for the elements in the input object
* `eqArrays(...)`: takes in two arrays and returns true or false, based on a perfect match
* `eqObjects(...)`: takes in two objects and returns true or false, based on a perfect match
* `findKey(...)`: takes in an object and a callback and returns the first key for which the callback returns a truthy value
* `findKeyByValue(...)`: takes in an object and a value and returns the first key which contains the given value.
* `head(...)`: returns the first item in the array
* `letterPositions(...)`: returns all the indices in the string where each character is found
* `map(...)`: take in an array to map and a callback function and returns a new array based on the results of the callback function
* `middle(...)`: takes in an array and return the middle-most element(s) of the given arra
* `processargv(...)`: taking command line arguments
* `reverse(...)`: reverst order of string
* `sum(...)`: sum numbers entered in console
* `tail(...)`: returns the "tail" of an array: everything except for the first item (head) of the array
* `takeUntil(...)`: takes in an array and a callback function and returns a slice of the array with elements taken from the beginning until the predicate returns a truthy value
* `without(...)`: returns a subset of a given array, removing unwanted elements

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