--

Thanks Sho! I'm glad you found it useful. Another benefit I forgot to mention is that you can pass the properties in any order in the object, which is great if you have several similar utility functions where it's easy to forget the "correct" order when defining them and using them.

--

--

Dr. Derek Austin 🥳
Dr. Derek Austin 🥳

Written by Dr. Derek Austin 🥳

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.

No responses yet