{"ScriptPreparationCode":"var assignments = []\r\n\r\nfor (i = 0; i \u003C 50; i\u002B\u002B) {\r\n assignments.push({ externalId: uuid.v4() })\r\n}\r\n\r\nfunction testIncludes() {\r\n var externalIdsArray = []\r\n \r\n for (i = 0; i \u003C 50; i\u002B\u002B) {\r\n externalIdsArray.push(uuid.v4())\r\n }\r\n \r\n assignments.filter(a =\u003E externalIdsArray.includes(a.externalId))\r\n}\r\n\r\nfunction testSet() {\r\n var externalIdsSet = new Set()\r\n \r\n for (i = 0; i \u003C 50; i\u002B\u002B) {\r\n externalIdsSet.add(uuid.v4())\r\n }\r\n \r\n assignments.filter(a =\u003E externalIdsSet.has(a.externalId))\r\n}\r\n\r\nfunction testMap() {\r\n var externalIdsMap = new Map()\r\n \r\n for (i = 0; i \u003C 50; i\u002B\u002B) {\r\n externalIdsMap.set(uuid.v4(), 1)\r\n }\r\n \r\n assignments.filter(a =\u003E externalIdsMap.has(a.externalId))\r\n}","TestCases":[{"Name":"Test includes","Code":"testIncludes()","IsDeferred":false},{"Name":"Test set","Code":"testSet()","IsDeferred":false},{"Name":"Test map","Code":"testMap()","IsDeferred":false}]}