Skip to main content

Variable: helper_wnba_game_data

const helper_wnba_game_data: (pbp_txt, init) => [Record<string, any>, Init] = WNBA.game_data

Defined in: src/producers/espn_basketball_pbp.ts:1113

WNBA home / away identification (sdv-py helper_wnba_game_data(pbp_txt, init)): [pbp_txt, init]. homeTeamSpread follows homeFavorite (a one-element array in init stays one, as numpy).

Parameters​

pbp_txt​

any

The trimmed game dict; reads header.competitions[0] and header.season.

init​

Init

The pickcenter dict (all four keys required).

Returns​

[Record<string, any>, Init]

[pbp_txt, init] with the team keys added (see the NBA helper).

Example​

const [txt, init2] = sdv.wnba.helper_wnba_game_data(summary, init);

See​

helper_nba_game_data for the keys read / written and the errors.