{"ScriptPreparationCode":"function coerceBoolean (value) {\r\n const booleans = [\u0027true\u0027, \u0027false\u0027]\r\n\r\n if (booleans.includes(value)) return value === \u0027true\u0027\r\n\r\n return value\r\n}\r\n\r\nfunction coerceSimpleBoolean (value) {\r\n if (value === \u0027true\u0027) return true\r\n if (value === \u0027false\u0027) return false\r\n return value\r\n}\r\n\r\n\r\n","TestCases":[{"Name":"Coercing","Code":"coerceBoolean(\u0027true\u0027)\r\ncoerceBoolean(true)\r\ncoerceBoolean(false)\r\ncoerceBoolean(\u0027false\u0027)\r\ncoerceBoolean(\u0027farts\u0027)","IsDeferred":false},{"Name":"Simple version","Code":"coerceSimpleBoolean(\u0027true\u0027)\r\ncoerceSimpleBoolean(true)\r\ncoerceSimpleBoolean(false)\r\ncoerceSimpleBoolean(\u0027false\u0027)\r\ncoerceSimpleBoolean(\u0027farts\u0027)","IsDeferred":false}]}