Answers for "typescript convert string to boolean\"

0

convert string to bool typescript

var stringValue = "true";
var boolValue = (stringValue =="true");   //returns true
Posted by: Guest on June-30-2021
0

boolean to string typescript

// cannot use toString(), use instead String()
var myBool: boolean = true;
var myString: string = String(myBool);
Posted by: Guest on February-10-2021

Code answers related to "typescript convert string to boolean\"

Code answers related to "Javascript"

Browse Popular Code Answers by Language