{"ScriptPreparationCode":null,"TestCases":[{"Name":"without debouce","Code":"const a = 1;\r\nconst b = 2;\r\nconst c = 3;\r\nlet i = 0;\r\n\r\nconst onScroll = () =\u003E {\r\n if (a \u003E 2 \u0026\u0026 b \u003E 3 \u0026\u0026 c \u003E 4) {\r\n\r\n }\r\n}\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n onScroll();\r\n}","IsDeferred":false},{"Name":"with debounce","Code":"const a = 1;\r\nconst b = 2;\r\nconst c = 3;\r\nlet j = 0;\r\nlet timer = null;\r\n\r\nconst onScrollDebounced = () =\u003E {\r\n if (timer) clearTimeout(timer);\r\n timer = setTimeout(() =\u003E {\r\n if (a \u003E 2 \u0026\u0026 b \u003E 3 \u0026\u0026 c \u003E 4) {\r\n\r\n }\r\n }, 100)\r\n}\r\n\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n onScrollDebounced();\r\n}","IsDeferred":false}]}