Skip to content

Commit

Permalink
style: || to ??
Browse files Browse the repository at this point in the history
Co-authored-by: Matt <[email protected]>
  • Loading branch information
SlayerOrnstein and TobiTenno authored Jan 22, 2025
1 parent aa144b7 commit d845f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Race.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export default class Race {
* @returns {Race[]} An array of races formatted in a more consumable way.
*/
static fromRaceObject(races) {
return Object.entries(races || []).map(([type, { highScore }]) => new Race(type, highScore));
return Object.entries(races ?? []).map(([type, { highScore }]) => new Race(type, highScore));
}
}

0 comments on commit d845f04

Please sign in to comment.