Converting string “true” / “false” to boolean value [duplicate]

I have a JavaScript string containing "true" or "false".

How may I convert it to boolean without using the eval function?

3 Answers
3

Leave a Comment