convert a string into a bool 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');