{"ScriptPreparationCode":"window.case1 = new Proxy({}, {\r\n isNumeric(str) {\r\n return !isNaN(parseInt(str));\r\n}\r\n});\r\nwindow.case2 = new Proxy({}, {\r\n isNumeric(str) {\r\n for (let i = 0; i \u003C str.length; i\u002B\u002B) {\r\n // check if the character at position i is not a digit\r\n if (str[i] \u003C \u00270\u0027 || str[i] \u003E \u00279\u0027) {\r\n return false;\r\n }\r\n }\r\n return str.length \u003E 0;\r\n\t}\r\n});\r\nwindow.case3 = new Proxy({}, {\r\n isNumeric(str) {\r\n return /^[0-9]*$/.test(str);\r\n}\r\n});\r\n\r\nwindow.gabage1 = 0;\r\nwindow.gabage2 = 0;\r\nwindow.gabage3 =0;","TestCases":[{"Name":"isNan","Code":"for (let i = 0; i \u003C 1e6;i\u002B\u002B) { gabage1 =\u002B case1[i]; }","IsDeferred":false},{"Name":"Checks characters for numbers","Code":"for (let i = 0; i \u003C 1e6;i\u002B\u002B) { gabage2 \u002B= case2[i]; }","IsDeferred":false},{"Name":"Regex","Code":"for (let i = 0; i \u003C 1e6;i\u002B\u002B) { gabage3 \u002B= case3[i]; }","IsDeferred":false}]}