Master Objects in JS 🍨 (Part 3)
Make your Constructors new-Agnostic 🏗️ When you create a constructor such as a User function, you rely on callers to remember to call it with the new operator. Notice how the function assumes that a receiver is a brand-new object: function User(name...
Aug 15, 20224 min read112

