Filters responses from the ElectionTonight API, when available on an endpoint, using the ElectionTonightClient.filter method.
const filter = { states: ['TX', 'Alabama', '03', 1, 'Calif.'], maxDateTime: '2018-11-06T21:10:00-0600', office: 'H', summary: true,}; Copy
const filter = { states: ['TX', 'Alabama', '03', 1, 'Calif.'], maxDateTime: '2018-11-06T21:10:00-0600', office: 'H', summary: true,};
Edison state codes; FIPS, postal or AP state abbreviations; or names
Max ISO datetime string
Edison office code
Summary results or county-level
Generated using TypeDoc
Filters responses from the ElectionTonight API, when available on an endpoint, using the ElectionTonightClient.filter method.