{"ScriptPreparationCode":"// 1. Inline code will be directly in test case\r\n\r\n// 2. Single Functions\r\nglobalThis.singleFunction = () =\u003E {\r\n const arr1 = [1, -12, 7];\r\n const arr2 = arr1.filter(v =\u003E v \u003E 0);\r\n\r\n return [...arr1, ...arr2];\r\n};\r\n\r\n// 3. Function Composition\r\nconst makeArr = (a, b, c) =\u003E [a, b, c];\r\nconst filterPositive = arr =\u003E arr.filter(v =\u003E v \u003E 0);\r\nconst mergeArrays = (a, b) =\u003E [...a, ...b];\r\n\r\nglobalThis.composition = () =\u003E {\r\n const arr1 = makeArr(1, -12, 7);\r\n const arr2 = filterPositive(arr1);\r\n\r\n return mergeArrays(arr1, arr2);\r\n};\r\n","TestCases":[{"Name":"Inline JS","Code":"const arr1 = [1, -12, 7];\r\nconst arr2 = arr1.filter(v =\u003E v \u003E 0);\r\nconst result = [...arr1, ...arr2];","IsDeferred":false},{"Name":"Single Function","Code":"const result = singleFunction();","IsDeferred":false},{"Name":"Function Composition","Code":"const result = composition();","IsDeferred":false}]}