master
import Phaser from 'phaser'; /** * Game width. * @param game Game. */Similar blocks of code found in 2 locations. Consider refactoring.export function gameWidth(game: Phaser.Game): number { return (<{ width: number }>game.config).width;}