{"ScriptPreparationCode":"var data = [{\r\n \u0027id\u0027: 1,\r\n \u0027value\u0027: \u0027one\u0027\r\n}, {\r\n \u0027id\u0027: 2,\r\n \u0027value\u0027: \u0027two\u0027\r\n}, {\r\n \u0027id\u0027: 3,\r\n \u0027value\u0027: \u0027three\u0027\r\n}, {\r\n \u0027id\u0027: 4,\r\n \u0027value\u0027: \u0027four\u0027\r\n}, {\r\n \u0027id\u0027: 5,\r\n \u0027value\u0027: \u0027five\u0027\r\n}];\r\n\r\nvar removed = [{\r\n \u0027id\u0027: 3,\r\n \u0027value\u0027: \u0027three\u0027\r\n}, ]\r\n\r\nfunction removedFromData() {\r\n if (removed.length \u003E 0) {\r\n removed.forEach((el) =\u003E {\r\n const _index = data.findIndex((ele) =\u003E lodash.isEqual(ele, el));\r\n data.splice(_index, 1);\r\n });\r\n }\r\n}","TestCases":[{"Name":"lodash","Code":"data = lodash.differenceWith(data, removed, lodash.isEqual);","IsDeferred":false},{"Name":"my implementation","Code":"removedFromData();","IsDeferred":false}]}