Skip to content
Subhajit Sahu edited this page May 7, 2020 · 14 revisions

Get all values in lists, like Object.values().

const values = require('@extra-lists/values');
// values(<lists>)

a = ['admiral', 'bulldog', 'dota2'];
values([a.keys(), a]);
// ['admiral', 'bulldog', 'dota2']
a = {w1: 'powered', w2: 'by', w3: 'source'};
values([Object.keys(a), Object.values(a)]);
// ['powered', 'by', 'source']

extra-lists

Clone this wiki locally