{"ScriptPreparationCode":"var oldArr = [\r\n {\r\n \u0022id\u0022: 52\r\n },\r\n {\r\n \u0022id\u0022: 76\r\n },\r\n {\r\n \u0022id\u0022: 13\r\n },\r\n {\r\n \u0022id\u0022: 96\r\n },\r\n {\r\n \u0022id\u0022: 27\r\n },\r\n {\r\n \u0022id\u0022: 8\r\n },\r\n {\r\n \u0022id\u0022: 23\r\n },\r\n {\r\n \u0022id\u0022: 63\r\n },\r\n {\r\n \u0022id\u0022: 25\r\n }\r\n]\r\n\r\nvar newArr = [\r\n 52,\r\n 76,\r\n 13,\r\n 96,\r\n 27,\r\n 8,\r\n 23,\r\n 63,\r\n 25,\r\n 1\r\n]","TestCases":[{"Name":"Pure JS","Code":"const currentIds = new Set(oldArr.map(e =\u003E e.id));\r\nnewArr.filter(id =\u003E !currentIds.has(id));","IsDeferred":false},{"Name":"Lodash diffrenceWith","Code":"_.differenceWith(newArr, oldArr, (v, e) =\u003E v === e.id);","IsDeferred":false}]}