diff options
| author | Adam Soltys <[email protected]> | 2023-01-17 12:30:30 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-01-17 12:30:30 -0800 |
| commit | 5ae4209579287c571559edcf00dce24754553aaf (patch) | |
| tree | f897e334e3781345af66b11cd7a2b3b712912354 /lib/utils.js | |
| parent | e918a818acf789a6619cbf4432f0c4713d4c53e6 (diff) | |
| download | coinos-server-5ae4209579287c571559edcf00dce24754553aaf.tar.gz coinos-server-5ae4209579287c571559edcf00dce24754553aaf.zip | |
rename db
Diffstat (limited to 'lib/utils.js')
| -rw-r--r-- | lib/utils.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.js b/lib/utils.js index e53bf649..8d2648f2 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -26,4 +26,4 @@ export const SATS = 100000000; export const toSats = n => Math.round(n * SATS); export const uniq = (a, k) => [...new Map(a.map(x => [k(x), x])).values()]; -export const pick = (O, K) => K.reduce((o, k) => ((o[k] = O[k]), o), {}); +export const pick = (O, K) => K.reduce((o, k) => (typeof O[k] !== 'undefined' && (o[k] = O[k]), o), {}); |
