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

0

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
Posted by: Guest on March-07-2022

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

Code answers related to "Javascript"

Browse Popular Code Answers by Language