Skip to content
Subhajit Sahu edited this page May 3, 2023 · 16 revisions

Get all values.

Alternatives: ivalues, values, values$.
Similar: randomValue, values, hasValue.
Similar: keys, values, entries.


function values(x)
// x: an array
const xarray = require('extra-array');

var x = [1, 2, 3];
xarray.values(x);
// → [ 1, 2, 3 ]


References

Clone this wiki locally