{"ScriptPreparationCode":"function one(val) {\r\n return val.endsWith(\u0022.ts\u0022) || val.endsWith(\u0022.tsx\u0022)\r\n}\r\nfunction two(val) {\r\n const x1 = val.slice(-3);\r\n if(x1 === \u0022.ts\u0022) return true;\r\n const x2 = val.slice(-4);\r\n if(x2 === \u0022.tsx\u0022) return true;\r\n return false;\r\n}\r\n\r\nfunction three(val) {\r\n const L = val.length;\r\n if(val[L-3] === \u0027.\u0027 \u0026\u0026 val[L-2] === \u0027t\u0027 \u0026\u0026 val[L-1] === \u0027s\u0027) return true;\r\n if(val[L-4] === \u0027.\u0027 \u0026\u0026 val[L-3] === \u0027t\u0027 \u0026\u0026 val[L-2] === \u0027s\u0027 \u0026\u0026 val[L-1] === \u0022x\u0022) return true;\r\n return false;\r\n}","TestCases":[{"Name":"one","Code":"one(\u0022hello world.tsx\u0022)","IsDeferred":false},{"Name":"two","Code":"two(\u0022hello world.tsx\u0022)","IsDeferred":false},{"Name":"three","Code":"three(\u0022hello world.tsx\u0022)","IsDeferred":false}]}