UNPKG
@qso-soft/shared
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.1
1.0.0
Shared library for QSO-soft
github.com/Mokekula/QSO-shared.git
@qso-soft/shared
/
dist
/
helpers
/
file-handlers
/
json-handlers.js
10 lines
•
340 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
const
getFullDataByWallets
= (
wallets, jsonWallets
) => {
return
wallets.
reduce
(
(
acc, cur
) =>
{
const
foundRow = jsonWallets.
find
(
(
wallet
) =>
wallet.
walletAddress
=== cur);
if
(foundRow) {
return
[...acc, foundRow]; }
return
acc; }, []); };
//# sourceMappingURL=json-handlers.js.map