HackerTrans
トップ新着トレンドコメント過去質問紹介求人

fedlarm

no profile record

コメント

fedlarm
·9 か月前·議論
You could write the logic in a more straight forward, but less composable way, so that all the logic resides in one pure function. This way you can also keep the code to only loop over the users once.

email.sendBulk(generateExpiryEmails(db.getUsers(), Date.now()));