# @magyarg/utils

> Simple utility methods to make development a bit easier.

Latest version **0.0.3** (published 2019-02-15) · 0 weekly downloads

## Install

```sh
npm install @magyarg/utils
pnpm add @magyarg/utils
yarn add @magyarg/utils
bun add @magyarg/utils
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2019-02-15 |
| First published | 2019-02-15 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | magyarg |

## Links

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

## Recent versions

- 0.0.3 (latest) — 2019-02-15
- 0.0.2 — 2019-02-15
- 0.0.1 — 2019-02-15

## README

# Utils

## 📦 Array

### **all**

Returns `true` if the provided function applies for every
element of the array.

```javascript
all([1, 2, 3], (it) => it > 0)
```

### **allEqual**

Returns `true` if all the provided array elements
are equal.

```javascript
allEqual([1, 1, 1])
```

### **any**

Returns `true` if the provided function applies for at least on of the elements.

```javascript
any([1, 2, 3], (it) => it === 3)
```

### **chunk**

Chunks an array into smaller arrays of a specified size

```javascript
chunk([1, 2, 3, 4, 5, 6], 2)
```

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