string to boolean javascript es6 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');