In Part 1 of the series, Kirill covered how to make regular JavaScript objects behave like primitive values. Now, let’s look closely at the usefulness of primitive objects, exploring how reducing capabilities could be a benefit for your project. Writing ...

Trying to rewrite parts of a patchy codebase, Kirill has rediscovered for himself the power of JavaScript objects. He kept returning again and again to a pattern that kept the code clear and removed unnecessary operations. Bringing regular objects closer ...