values - nodef/extra-lists GitHub Wiki

List all values.

Similar: randomValue, values, hasValue.

function values(x)
// x: lists
const xlists = require('extra-lists');

var x = ['a', 'b', 'c'], [1, 2, 3](/nodef/extra-lists/wiki/'a',-'b',-'c'],-[1,-2,-3);
[...xlists.values(x)];
// → [ 1, 2, 3 ]

References