@array-like/reduce
Version:
ArrayLike reducers for JavaScript
36 lines (30 loc) • 2.32 kB
Markdown
:bowl_with_spoon: [@array-like/reduce](https://array-like.github.io/reduce)
==
ArrayLike reducers for JavaScript.
See [docs](https://array-like.github.io/reduce/index.html).
```js
import {shuffle} from '@randomized/random';
import {_calloc} from '@array-like/alloc'
import {iota} from '@array-like/fill';
import {max} from '@array-like/reduce';
import {increasing} from '@total-order/primitive';
const calloc = _calloc(Int32Array);
const n = 100;
const a = calloc(n);
iota(a, 0, n, 0);
shuffle(a, 0, n);
max(increasing, a, 0, n); // 99
```
[](https://raw.githubusercontent.com/array-like/reduce/main/LICENSE)
[](https://www.npmjs.org/package/@array-like/reduce)
[](https://github.com/array-like/reduce/actions/workflows/ci:test.yml?query=branch:main)
[](https://david-dm.org/array-like/reduce)
[](https://david-dm.org/array-like/reduce?type=dev)
[](https://github.com/array-like/reduce/issues)
[](https://www.npmjs.org/package/@array-like/reduce)
[](https://codeclimate.com/github/array-like/reduce/issues)
[](https://codeclimate.com/github/array-like/reduce/trends/churn)
[](https://codecov.io/gh/array-like/reduce)
[](https://codeclimate.com/github/array-like/reduce/trends/technical_debt)
[](https://array-like.github.io/reduce/source.html)
[](https://bundlephobia.com/result?p=@array-like/reduce)