{"ScriptPreparationCode":"var todoList = {id: 1,\r\n title: \u0027Todo App\u0027,\r\n items: [\r\n {\r\n id: 1,\r\n text: \u0027Create todo list item1\u0027,\r\n dateTime: new Date(2021, 3, 22, 0, 30),\r\n checked: false,\r\n }, {\r\n id: 2,\r\n text: \u0027Create todo list item2\u0027,\r\n checked: false,\r\n }, {\r\n id: 3,\r\n text: \u0027Create todo list item3\u0027,\r\n checked: false,\r\n }, {\r\n id: 4,\r\n text: \u0027Create todo list item4\u0027,\r\n checked: true,\r\n }, {\r\n id: 5,\r\n text: \u0027Create todo list item5\u0027,\r\n checked: true,\r\n }, {\r\n id: 6,\r\n text: \u0027Create todo list item4Create todo list item4Create todo list item4Create todo list item4\u0027,\r\n checked: true,\r\n },\r\n ]\r\n};\r\n\r\nvar todo = [];\r\nvar done = [];\r\n\r\n\r\nfunction filterJS(todoListCopy) { \r\n _.forEach(todoListCopy.items, (item) =\u003E {\r\n if (item.checked) {\r\n done.push(item);\r\n } else {\r\n todo.push(item);\r\n }\r\n });\r\n}\r\n\r\nfunction filterLodash(todoListCopy) { \r\n _.forEach(todoListCopy.items, (item) =\u003E {\r\n if (item.checked) {\r\n done.push(item);\r\n } else {\r\n todo.push(item);\r\n }\r\n });\r\n}\r\n\r\n","TestCases":[{"Name":"test JS","Code":"filterJS(todoList);","IsDeferred":false},{"Name":"test lodash","Code":"filterLodash(todoList);","IsDeferred":false}]}