score()
function score(events, match): object;Defined in: packages/data-providers/src/impect/select.ts:94
A match's score, from its events: each side's GOALs plus the other side's
OWN_GOALs, which Impect credit to the team that conceded. The match list
carries no score of its own.
Parameters
| Parameter | Type |
|---|---|
events | readonly ImpectEvent[] |
match | Pick<ImpectMatchSummary, "homeSquadId" | "awaySquadId"> |
Returns
object
away
readonly away: number;home
readonly home: number;