Best WordPress Hosting
 

Discovering Primitive Objects In JavaScript (Part 1)

via smashingmagazine.com => original post link

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);