Samuel
what part? we need a function that does 2 things 1. filter out deleted messages 2. provide the next message, for the UI to use I'm curious what you'd do differently
2 2
Samuel
oh right haha so what, return null or something and then filter out afterwards?
1
Samuel
@samuel.fm
Performance is not an issue here and reduce is wildly more unreadable and bug prone. Avoid reduce where possible imo unless you have a specific need