Thursday, October 15, 2026

Discovering Primitive Objects In JavaScript (Part 1)

It seems natural to use strings to distinguish things. It’s very likely that in your codebase, there are objects with name, id, or label properties that are used to determine if an object is the one you’re looking for. if (element.label === "title") { make_bold(element); } At a certain point, your project grows (in size,…