Dec 18, 2020
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?
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?
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.