Skip to content
Subhajit Sahu edited this page Dec 8, 2022 · 16 revisions

Get all 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