javascript make boolean from string 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');