isGoal()
function isGoal(event): boolean;Defined in: packages/data-providers/src/wyscout/predicates.ts:130
Was this a goal?
Applies to the event that produced it — but note the same tag also sits on
the conceding keeper's Save attempt, so filter goalAttempts() rather
than the whole feed unless you want both sides of each goal. An own goal
carries isOwnGoal instead. See goalAttempts.
Parameters
| Parameter | Type |
|---|---|
event | WyscoutEvent |
Returns
boolean