Humble numbers: Difference between revisions
Content deleted Content added
→{{header|JavaScript}}: Added a rough draft in JavaScript |
m →{{header|JavaScript}}: Dropped a redundant (Array.from) coercion. |
||
Line 739: | Line 739: | ||
const hs = new Set([1]); |
const hs = new Set([1]); |
||
while (true) { |
while (true) { |
||
let nxt = Math.min(... |
let nxt = Math.min(...hs) |
||
yield nxt; |
yield nxt; |
||
hs.delete(nxt); |
hs.delete(nxt); |