parse boolean string in javascript code example
Example 1: string to boolean js
JSON.parse('true')
Example 2: js string to boolean
// Do
var isTrueSet = (myValue == 'true');
// Or
var isTrueSet = (myValue === 'true');
JSON.parse('true')
// Do
var isTrueSet = (myValue == 'true');
// Or
var isTrueSet = (myValue === 'true');