Yashotantra Academy
AI · Blockchain · Cloud · Data
Dark mode active
Learn
Tracks
ABCD
Certification
More
▾
Dark mode active
Learn
Tracks
ABCD
Certification
Study
Theory
Code Lab
Build
Solidity IDE
Staking Sandbox
Simulation
Reference
Wallets
Gas Fees
Explorers
← Code Lab
JavaScript
0/50 solved · 0%
All lessons
lesson
code
Data structures · medium
26. Map & Set
Keyed collections and uniqueness.
Write `uniqueSenders(txs)` returning an array of distinct `from` values, in first-seen order.
Required in your answer:
new Set
Reveal solution
Run & check
Reset
Runs in a sandboxed worker
function uniqueSenders(txs) { // TODO use a Set }
Output appears here.
← 25. Getters & static
27. throw & try/catch →