javascript true string to boolean

JavaScript
var isHidden='true';
var isHiddenBool = (isHidden == 'true');
Source

Also in JavaScript: