@extra-array/values
Version:
Lists all values.
46 lines (33 loc) • 1.3 kB
Markdown
Lists all values.
[:package:](https://www.npmjs.com/package/@extra-array/values)
[:smiley_cat:](https://github.com/orgs/nodef/packages?repo_name=extra-array)
[:running:](https://npm.runkit.com/@extra-array/values)
[:vhs:](https://asciinema.org/a/332153)
[:moon:](https://www.npmjs.com/package/@extra-array/values.min)
[:scroll:](https://unpkg.com/@extra-array/values/)
[:newspaper:](https://nodef.github.io/extra-array/)
[:blue_book:](https://github.com/nodef/extra-array/wiki/)
> Similar: [value], [values], [hasValue].<br>
> Similar: [keys], [values], [entries].
> This is part of package [extra-array].
[extra-array]: https://www.npmjs.com/package/extra-array
<br>
```javascript
array.values(x);
// x: an array
```
```javascript
const array = require("extra-array");
var x = [1, 2, 3];
[...array.values(x)];
// [ 1, 2, 3 ]
```
<br>
<br>
## References
- [Array.prototype.values: MDN web docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values)
[keys]: https://github.com/nodef/extra-array/wiki/keys
[values]: https://github.com/nodef/extra-array/wiki/values
[entries]: https://github.com/nodef/extra-array/wiki/entries
[value]: https://github.com/nodef/extra-array/wiki/value
[hasValue]: https://github.com/nodef/extra-array/wiki/hasValue