PitchKit
API Reference@pitchkit/data-providersimpectFunctions

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

ParameterType
eventsreadonly ImpectEvent[]
matchPick<ImpectMatchSummary, "homeSquadId" | "awaySquadId">

Returns

object

away

readonly away: number;

home

readonly home: number;

On this page