sindresorhus/electron-store

Default Behaviour for `store.get(undefined)`

Open

#283 建立於 2024年9月30日

在 GitHub 查看
 (2 留言) (1 反應) (0 負責人)JavaScript (4,304 star) (150 fork)batch import
enhancementhelp wanted

描述

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.

貢獻者指南

Default Behaviour for `store.get(undefined)` · sindresorhus/electron-store#283 | Good First Issue