Twitter | Search | |
Jake Archibald May 7
🎮 If you like minesweeper, you'll like this. Because it's the same. ➡️ 20k to interactive. ➡️ Also works on $15 KaiOS phones. ➡️ Keyboard & screen reader accessible. Had a lot of fun building this! What are your fastest times?
Reply Retweet Like
Jake Archibald May 7
Replying to @DasSurma @kosamari
Wait shit, this makes it sound like I did this all on my ownsies. No. The most impressive parts were done by and . Tune into to hear how it was put together.
Reply Retweet Like
Andrea Giammarchi
funny dance there: Array(length).fill(undefined).map(() => callback()); any reason not to simply: Array.from({length}, () => callback()) ? btw, great app!
Reply Retweet Like More
Guy Waldman May 8
Even simpler: Array.from({ length }, callback)
Reply Retweet Like
Andrea Giammarchi May 8
⚠ side effects ⚠ if callback accepts arguments that will likely fail, which is why both me, and I guess before went for the () => callback() version 😉 however, if callback accepts zero parameters, that'd be my pick too (I haven't checked though)
Reply Retweet Like