JavaScript – string to boolean

var isTrueSet = (myValue == 'true');

Comments are closed.