Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to boolean js

var myBool = Boolean("false");  // == true

var myBool = !!"false";  // == true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #boolean #js
ADD COMMENT
Topic
Name
9+3 =