{"ScriptPreparationCode":"const j = [1, 4, 9, 16, 25, 35, 49, 68, 74, 86, 93, 110, 121, 135, 141, 156, 157, 158, 161, 162, 163, 164, 165, 166, 167, 168]\r\n\r\n\r\nfunction mapper(el) {\r\n return el \u002B 10\r\n}\r\n\r\nfunction lodashMap () {\r\n arr = _.map(j, mapper)\r\n console.log(arr)\r\n}\r\n\r\nfunction jsMap () {\r\n arr = j.map(mapper)\r\n console.log(arr)\r\n}\r\n\r\nfunction reducer (sum, el){\r\n\treturn sum \u002B el\r\n}\r\n\r\nfunction lodashReduce () {\r\n sum = _.reduce(j, reducer, 0)\r\n console.log(sum)\r\n}\r\n\r\nfunction jsReduce () {\r\n sum = j.reduce(reducer, 0)\r\n console.log(sum)\r\n}","TestCases":[{"Name":"JS map","Code":"jsMap()","IsDeferred":false},{"Name":"lodash map","Code":"lodashMap()","IsDeferred":false},{"Name":"js reduce","Code":"jsReduce()","IsDeferred":false},{"Name":"lodash reduce","Code":"lodashReduce()","IsDeferred":false}]}