I'm trying to console.log all db keys that starts with 'cmd'. At first I saw nothing. Then I tried to log all keys that starts with '' (nothing). But my code logs only numbers (how many keys i have).
My code:
db.list().then(keys => {
test = string.keys(keys).filter(k => k.startsWith(''));
console.log(test);
});