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

Get keys from entries, like Object.keys().

const keys = require('@extra-entries/keys');
// keys(<entries>)

keys(['fixed deposit', 'insurance', 'mutual fund', 'sip'].entries());
// [0, 1, 2, 3]
keys(new Set(['savings', 'current', 'demat']).entries());
// ['savings', 'current', 'demat']
keys(Object.entries({govt: 'SBI', pvt: 'HDFC'}));
// ['govt', 'pvt']

extra-entries

Clone this wiki locally