how to change string to determine true or false javascript code example
Example: js string to boolean
// Do
var isTrueSet = (myValue == 'true');
// Or
var isTrueSet = (myValue === 'true');
// Do
var isTrueSet = (myValue == 'true');
// Or
var isTrueSet = (myValue === 'true');