what if the string is `"wibble"`? I mean "true" === "true" is true and "false" === "true" is false ... but so is "wibble" === "true"
– BravoJul 29 '21 at 09:16
No the string will be either "true" or "false". I need to remove the string to make it boolean. How to do I do it
– AnonymousJul 29 '21 at 09:17
2
well, check if it equals the string `"true"` - or JSON.parse("true") JSON.parse("false")
– BravoJul 29 '21 at 09:18