convert boolean tostring javascript code example
Example 1: convert boolean to string javascript
booleanToString = b => { return b.toString(); }
// Way cleaner Version! easy readability!!
Example 2: javascript true string to boolean
var isHidden='true';
var isHiddenBool = (isHidden == 'true');