{"ScriptPreparationCode":"class Utility {\r\n static allowedValues = [true, false, \u0027true\u0027, \u0027false\u0027, 1, 0, \u00271\u0027, \u00270\u0027];\r\n static isBooleanInline(value) {\r\n return value === true || value === false || value === \u0027true\u0027 || value === \u0027false\u0027 || value === 1 || value === 0 || value === \u00271\u0027 || value === \u00270\u0027;\r\n }\r\n static isBooleanPredefined(value) {\r\n return this.allowedValues.includes(value);\r\n }\r\n}\r\nlet value = 2;","TestCases":[{"Name":"use predefined (no cache, false)","Code":"const valid = Utility.isBooleanPredefined(\u002B\u002Bvalue);","IsDeferred":false},{"Name":"use inline (no cache, false)","Code":"const valid = Utility.isBooleanInline(\u002B\u002Bvalue);","IsDeferred":false},{"Name":"use predefined (cache, false)","Code":"const valid = Utility.isBooleanPredefined(\u0027a\u0027);","IsDeferred":false},{"Name":"use inline (cache, false)","Code":"const valid = Utility.isBooleanInline(\u0027a\u0027);","IsDeferred":false},{"Name":"use predefined (no cache, true)","Code":"const valid = Utility.isBooleanPredefined(\u002B\u002Bvalue % 2);","IsDeferred":false},{"Name":"use inline (no cache, true)","Code":"const valid = Utility.isBooleanInline(\u002B\u002Bvalue % 2);","IsDeferred":false},{"Name":"use predefined (cache, true)","Code":"const valid = Utility.isBooleanPredefined(1);","IsDeferred":false},{"Name":"use inline (cache, true)","Code":"const valid = Utility.isBooleanInline(1);","IsDeferred":false}]}