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, importance, popularity, or all at once). It needs more strings as there are more things to distinguish from each other. The strings grow longer, as does the cost of t
Read more »