{"ScriptPreparationCode":"function f(n) { return \u002B\u002Bn; }\r\nvar oldValue = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];\r\nvar newValue = [1, 2, 3, 4, 5, 6, 7, 9, 10, 11];","TestCases":[{"Name":"array","Code":"var addedIds = newValue.filter(userId =\u003E !oldValue.includes(userId));\r\nvar removedIds = oldValue.filter(userId =\u003E !newValue.includes(userId));\r\naddedIds.forEach(userId =\u003E f(userId));\r\nremovedIds.forEach(userId =\u003E f(userId));","IsDeferred":false},{"Name":"set","Code":"var oldSet = new Set(oldValue);\r\nvar newSet = new Set(newValue);\r\nvar addedIds = newValue.filter(userId =\u003E !oldSet.has(userId));\r\nvar removedIds = oldValue.filter(userId =\u003E !newSet.has(userId));\r\naddedIds.forEach(userId =\u003E f(userId));\r\nremovedIds.forEach(userId =\u003E f(userId));","IsDeferred":false}]}