sindresorhus/electron-store

Default Behaviour for `store.get(undefined)`

Open

#283 aberto em 30 de set. de 2024

Ver no GitHub
 (2 comments) (1 reaction) (0 assignees)JavaScript (4.304 stars) (150 forks)batch import
enhancementhelp wanted

Description

I've just realized that the default behavior of getting undefined resolves the entire store w/any error or warning. Is an error or warning desirable for case of bad input args?

let u;
let storedu = store.get(u);
console.log(storedu);
// Lists entire contents of the satore

If so, happy to PR.

Guia do colaborador