So I’m building an app for the community, and I’m using the recommended NC Lint rules, but I keep getting a “error Expected ‘===’ and instead saw ‘==’ eqeqeq”. When I appease Lint and change the equation to ‘===’ it brakes my code. Yes, I am aware that ‘===’ means compare type. The problem is that its comparing two string values but they types don’t match??
The “roid” is a 64+ character string value, that comes from the same page, from a NcActionRadio event, on this line,
The “this.establishedContactCorrelations” is a array with 6 fields, one of them being “roid”, a 64+ string character value, that is pulled from a PHP function here:
So how do I appease Lint and not break the code?
FYI, I am totally aware I am probably missing something basic and will look like a donkey after I read the answer.
So the easiest solution was just to type cast the variables, which then let me use the ‘===’ type cast equals.