{"ScriptPreparationCode":null,"TestCases":[{"Name":"ES6 - Strict","Code":"const testArray = [4, 15, 20, 7, 3, 13, 2, 20]\r\nconst result1 = testArray\r\n .filter(num =\u003E num \u003C 10)\r\n .slice(0, 3)\r\n\r\nconsole.log(result1);\r\n\r\nconst arr = [0, 1, 2, 3, 4, 5]\r\n\r\nconst result2 = arr\r\n .map(num =\u003E num \u002B 10)\r\n .filter(num =\u003E num % 2)\r\n .slice(0, 2)\r\n \r\nconsole.log(result2)","IsDeferred":false},{"Name":"Lodash - Lazy","Code":"const testArray = [4, 15, 20, 7, 3, 13, 2, 20]\r\nconst result1 = _.chain(testArray)\r\n .filter(num =\u003E num \u003C 10)\r\n .take(3)\r\n .value();\r\n\r\nconsole.log(result1);\r\n\r\nconst arr = [0, 1, 2, 3, 4, 5]\r\n\r\nconst result2 = _.chain(arr)\r\n .map(num =\u003E num \u002B 10) \r\n .filter(num =\u003E num % 2) \r\n .take(2) \r\n .value() \r\n \r\nconsole.log(result2)","IsDeferred":false}]}