# just-values

> return property values as an array

Latest version **2.2.0** (published 2022-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install just-values
pnpm add just-values
yarn add just-values
bun add just-values
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-12-17 |
| First published | 2016-08-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6200 |
| Author | Angus Croll |
| Maintainers | angus-c |
| Keywords | object, values, no-dependencies, just |

## Links

- npm: https://www.npmjs.com/package/just-values
- Repository: https://github.com/angus-c/just
- Homepage: https://github.com/angus-c/just#readme
- Issues: https://github.com/angus-c/just/issues
- npm.io page: https://npm.io/package/just-values

## Recent versions

- 2.2.0 (latest) — 2022-12-17
- 2.1.1 — 2022-08-08
- 2.1.0 — 2022-08-07
- 2.0.1 — 2021-11-13
- 2.0.0 — 2021-11-09
- 1.4.2 — 2021-11-02
- 1.4.1 — 2021-11-01
- 1.4.0 — 2021-10-31
- 1.3.0 — 2021-10-30
- 1.2.0 — 2021-08-30
- 1.1.0 — 2018-08-09
- 1.0.1 — 2017-04-08
- 1.0.0 — 2016-08-04

## README

<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE -->
<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template -->

## just-values

Part of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

[`🍦 Try it`](https://anguscroll.com/just/just-values)

```shell
npm install just-values
```
```shell
yarn add just-values
```

Return property values as an array

```js
const values = require('just-values');

values({a: 4, c: 8}); // [4, 8]
values({a: {aa: 2}, b: {bb: 4}}); // [{aa: 2}, {bb: 4}]
values({}); // []
values([1, 2, 3]); // [1, 2, 3]
values(function(a, b) {return a + b;}); // []
values(new String('hello')); // ['h', 'e', 'l', 'l', 'o']
values(1); // throws exception
values(true); // throws exception
values(undefined); // throws exception
values(null); // throws exception
```

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