ladders.js
/**
	 * Returns a promise for a <tr> with all ratings for the current format.
	 */
Returns a promise for a  with all ratings for the current format.
Returns a promise for a with all ratings for the current format .
visualize(username) {
		return this.ladder.then(() => {
			let index = this.indexOfUser(username, false);
			if (index < 0) return '';
			let ratings = this.loadedLadder[index];
			let output = `<tr><td>${this.formatid}</td><td><strong>${Math.round(ratings[1])}</strong></td>`;
			return `${output}<td>${ratings[3]}</td><td>${ratings[4]}</td><td>${ratings[3] + ratings[4]}</td></tr>`;
		});
	}
visualize ( username ) { return this . ladder . then ( ( ) => { let index = this . indexOfUser ( username , false ) ; if ( index < 0 ) return '' ; let ratings = this . loadedLadder [ index ] ; let output = ` ${ this . formatid } ${ Math . round ( ratings [ 1 ] ) } ` ; return ` ${ output } ${ ratings [ 3 ] } ${ ratings [ 4 ] } ${ ratings [ 3 ] + ratings [ 4 ] } ` ; } ) ; }
Returns a promise for a <tr> with all ratings for the current format.
Returns a promise for a <tr > with all ratings for the current format .