--

I can definitely see using .includes() to replace the multiple || OR statements in the first example. But what's going on with the next example? Where are those "type:" and "ObjectID" and "enum:" coming from? Is this a database schema?

--

--

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.

Responses (1)