# @the-/util-array

> Array utility of the-framework

Latest version **15.4.12** (published 2020-02-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @the-/util-array
pnpm add @the-/util-array
yarn add @the-/util-array
bun add @the-/util-array
```

## Health

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

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 15.4.12 |
| Published | 2020-02-26 |
| First published | 2019-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 41.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | the, util |

## Links

- npm: https://www.npmjs.com/package/@the-/util-array
- Repository: https://github.com/the-labo/the
- Homepage: https://github.com/the-labo/the/tree/master/packages/util-array#readme
- Issues: https://github.com/the-labo/the#issues
- npm.io page: https://npm.io/package/@the-/util-array

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 15.4.12 (latest) — 2020-02-26
- 15.4.3 — 2019-05-06
- 15.4.1 — 2019-05-04
- 15.4.0 — 2019-04-30
- 15.2.0 — 2019-03-31
- 15.1.4 — 2019-03-31
- 15.1.3 — 2019-03-30
- 15.1.2 — 2019-03-30
- 15.1.0 — 2019-03-29
- 15.0.4 — 2019-03-23

## README

@the-/util-array
==========

<!---
This file is generated by @the-/templates. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![npm Version][bd_npm_shield_url]][bd_npm_url]

[bd_repo_url]: https://github.com/the-labo/the
[bd_npm_url]: http://www.npmjs.org/package/@the-/util-array
[bd_npm_shield_url]: http://img.shields.io/npm/v/@the-/util-array.svg?style=flat

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Array utility of the-framework

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>




<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/readme/01.Installation.md.hbs" Start -->

<a name="section-doc-readme-01-installation-md"></a>

Installation
-----

```bash
$ npm install @the-/util-array --save
```


<!-- Section from "doc/readme/01.Installation.md.hbs" End -->

<!-- Section from "doc/readme/02.Usage.md.hbs" Start -->

<a name="section-doc-readme-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

const { keyPathMap, uniqueFilter } = require('@the-/util-array')

async function tryExample() {
  console.log(
    ['foo', 'bar', 'foo'].filter(uniqueFilter()), // => ['foo', 'bar']
  )

  console.log(
    [{ foo: { bar: 10 } }, { foo: { bar: 20 } }].map(keyPathMap('foo.bar')), // => [10,20]
  )
}

tryExample().catch((err) => console.error(err))

```


<!-- Section from "doc/readme/02.Usage.md.hbs" End -->


<!-- Sections Start -->

<a name="api"></a>

## API Guide


- module:@the-/util-array
  - [.keyPathMap(keyPath,options)](./doc/api/api.md#module_@the-/util-array.keyPathMap)
  - [.randomFind()](./doc/api/api.md#module_@the-/util-array.randomFind)
  - [.shuffleSort()](./doc/api/api.md#module_@the-/util-array.shuffleSort)
  - [.uniqueFilter(options)](./doc/api/api.md#module_@the-/util-array.uniqueFilter)

See [API Guide](./doc/api/api.md) for more detail


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/the-labo/the/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [THE Labo][the_labo_url]

[the_labo_url]: https://github.com/the-labo

<!-- Links End -->

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