▲ Why for...of Loop in JavaScript is a Gem at dmitripavlutin.com▼2 up and 0 down, posted by panzerdp 1705 days ago 1 comment
tracker1 1705 days ago. link 1 point ▲ ▼Should add a note that for..of over strings will give you surrogate pairs and is the most reliable means of doing so for Unicode sets. // will only print one line for the pair. for (const c of '\uD83D\uDE00') { console.log('-', c); }