open-index/open-npm huggingface dataset:
npm package: @magyarg/utils
Description: Simple utility methods to make development a bit easier.
Latest version: 0.0.3

# 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)
```