Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Cannot coerce `dirty` to string because boolean [1] should not be coerced.

//this happens commonly when using flow
//you need to explicitly cast your boolean to string.
console.log(`this is ${String(true)}`) =>  //this is true
 
PREVIOUS NEXT
Tagged: #Cannot #coerce #string #boolean
ADD COMMENT
Topic
Name
3+6 =