{"ScriptPreparationCode":"var teamMembers = [{\r\n id: 1\r\n}, {\r\n id: 2\r\n}, {\r\n id: 3\r\n}, {\r\n id: 10\r\n}]\r\n\r\nvar enrolledPlayers = [{\r\n id: 1,\r\n leagueId: 1,\r\n teamId: undefined,\r\n}, {\r\n id: 2,\r\n leagueId: 1,\r\n teamId: 1,\r\n}, {\r\n id: 3,\r\n leagueId: 1,\r\n teamId: 2,\r\n}, {\r\n id: 4,\r\n leagueId: 1,\r\n teamId: undefined,\r\n}, {\r\n id: 5,\r\n leagueId: 1,\r\n teamId: 1,\r\n}, {\r\n id: 6,\r\n leagueId: 1,\r\n teamId: 2,\r\n}, {\r\n id: 7,\r\n leagueId: 2,\r\n teamId: undefined,\r\n}, {\r\n id: 8,\r\n leagueId: 2,\r\n teamId: 1,\r\n}, {\r\n id: 9,\r\n leagueId: 2,\r\n teamId: 2,\r\n}, {\r\n id: 11,\r\n leagueId: 1,\r\n teamId: undefined,\r\n}, {\r\n id: 12,\r\n leagueId: 1,\r\n teamId: 1,\r\n}, {\r\n id: 13,\r\n leagueId: 1,\r\n teamId: 2,\r\n}, {\r\n id: 14,\r\n leagueId: 1,\r\n teamId: undefined,\r\n}, {\r\n id: 15,\r\n leagueId: 1,\r\n teamId: 1,\r\n}, {\r\n id: 16,\r\n leagueId: 1,\r\n teamId: 2,\r\n}, {\r\n id: 17,\r\n leagueId: 2,\r\n teamId: undefined,\r\n}, {\r\n id: 18,\r\n leagueId: 2,\r\n teamId: 1,\r\n}, {\r\n id: 19,\r\n leagueId: 2,\r\n teamId: 2,\r\n}]","TestCases":[{"Name":"filter-innerJoin","Code":"R.innerJoin(\r\n (teamMember, enrolledPlayer) =\u003E teamMember.id === enrolledPlayer.id,\r\n teamMembers,\r\n enrolledPlayers.filter(({ leagueId, teamId }) =\u003E leagueId === 1 \u0026\u0026 teamId \u0026\u0026 teamId !== 1)\r\n)","IsDeferred":false},{"Name":"filter-some","Code":"teamMembers.filter(({ id }) =\u003E \r\n enrolledPlayers.some(({ leagueId, userId, teamId }) =\u003E \r\n id === userId \u0026\u0026 leagueId === 1 \u0026\u0026 teamId \u0026\u0026 teamId !== 1\r\n )\r\n)\r\n","IsDeferred":false}]}