Skip to content
Subhajit Sahu edited this page Nov 20, 2022 · 16 revisions

List all values.

Similar: randomValue, values, hasValue.
Similar: keys, values, entries.


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

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


References

Clone this wiki locally