Twitter | Search | |
Jake Archibald 7 May 19
🎮 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 7 May 19
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 8 May 19
Even simpler: Array.from({ length }, callback)
Reply Retweet Like
Andrea Giammarchi 8 May 19
⚠ 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
Surma 8 May 19
no, yours would be better. I always forget about that parameter.
Reply Retweet Like
François REMY 8 May 19
Lol, same! Thanks for the reminder I guess 🙂
Reply Retweet Like