# @yishan/lotide

> A mini clone of the [Lodash](https://lodash.com) library. This project was created and published by me as part of my learnings at Lighthouse Labs.

Latest version **1.0.0** (published 2023-02-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install @yishan/lotide
pnpm add @yishan/lotide
yarn add @yishan/lotide
bun add @yishan/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 | 2023-02-15 |
| First published | 2023-02-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yishan zhan |
| Maintainers | yishan |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2023-02-15

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

**Require it:**

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

**Call it:**

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

## Documentation

The following functions are currently implemented:

* `function(head)`: find the first element of an array
* `function(tail)`: find the 2nd till end of all the element
* `function(middle)`: find middle element(s) of an array
* `function(assertEqual)`: check whether they are equal
* `function(assertArrayEqual)`: check whether 2 arrays are equal
* `function(assertObjectsEqual)`: check whether 2 objects are equal
* `function(countLetters)`: count the number of each word 
* `function(countOnly)`: count only the words that required
* `function(eqArrays)`: check whether 2 arrays are the same
* `function(eqObjects)`: check whether 2 objects are the same
* `function(findKey)`: find the key 
* `function(findKeyByValue)`: find the key using the object value
* `function(letterPositions)`: find the position of the letter
* `function(map)`: our own way of map function
* `function(takeUntil)`: take an element from an array until some condiction happen
* `function(without)`: return value that not with something

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