# @pauline-shen/lotide

> lotide-practice

Latest version **1.0.0** (published 2022-08-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install @pauline-shen/lotide
pnpm add @pauline-shen/lotide
yarn add @pauline-shen/lotide
bun add @pauline-shen/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 | 2022-08-31 |
| First published | 2022-08-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pauline Shen |
| Maintainers | pauline-shen |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-08-31

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `assertArraysEqual(arr1, arr2)`: log whether two arrays (arr1, arr2) are equal
* `assertEqual(actual, expected)`: log whether two items are equal
* `assertObjectsEqual(actual, expected)`: log whether two objects are equal
* `countLetters(sentence)`: return occurence of each letter in a sentence
* `countOnly(allItems, itemsToCount)`: return count of specific strings (itemsToFCocunt) in allItems
* `eqArrays(arr1, arr2)`: return whether two arrays (arr1, arr2) are equal
* `eqObjects(object1, object2)`: return whether two objects (object1, 2) are equal
* `findKey(obj, callback)`: return key of first key in obj that has value make callback function return true
* `findKeyByValue(obj, val)`: return the key in obj that has the value indicated as val
* `flatten(arr)`: return flattened arr with one level of nested array
* `head(arr)`: return first item in an arr
* `letterPositions(sentence)`: return key as each letter in sentence and value is occurrence indices in array
* `map(array, callback)`: return array being mapped two the callback function
* `middle(arr)`: return array that contains middle element(s) in arr

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