"==" means equal in value, but not type, but "===" means equal in value and type.
var x = 7; x == "7" // returns true x === "7" // returns false as x is not a string x === 7 // returns true as they are both equal in value and type
For the code you provided, it looks like it checks to see if the locale value and type are boolean, so triple comparison is used in the same way, and also why it contains both true and false.
source share