sindresorhus/electron-store

Default Behaviour for `store.get(undefined)`

Aberta

#283 aberto em 30 de set. de 2024

 (2 comentários) (1 reação) (0 responsável)JavaScript (150 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (4.304 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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