sindresorhus/electron-store

Default Behaviour for `store.get(undefined)`

Open

#283 aperta il 30 set 2024

Vedi su GitHub
 (2 commenti) (1 reazione) (0 assegnatari)JavaScript (150 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (4304 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor