{"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{\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 \u0022id\u0022: 1\r\n },\r\n]","TestCases":[{"Name":"Native","Code":"newArr.reduce((ids, {id}) =\u003E {\r\n return ids.concat(\r\n !oldArr.some(oldItem =\u003E oldItem.id === id) ? id : []\r\n );\r\n}, [])","IsDeferred":false},{"Name":"Lodash.js filter","Code":"_.differenceWith(newArr, oldArr, _.isEqual);","IsDeferred":false}]}