Jul 8, 2021
Thanks for taking the time to share this useful alternative David! It absolutely will work the same, since only the returned values that evaluate to true will be kept after the .filter() call.
Thanks for taking the time to share this useful alternative David! It absolutely will work the same, since only the returned values that evaluate to true will be kept after the .filter() call.
Hi, I'm Doctor Derek! I've been a professional web developer since 2005, and I love writing about programming with JavaScript, TypeScript, React, Next.js & Git.