Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

node js convert string to boolean

// In React Or Node Js Or Any JavaScript Framework

const AnyName = JSON.parse("true"); //YourSreing

//Now You data converted Boolean Value

// This is how it should be if you store the database
AnyName : true,

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #node #js #convert #string #boolean
ADD COMMENT
Topic
Name
4+1 =