boards.js
function boardLookupTable() {
  var byBoard = {};
  for (var i = 0; i < boards.length; i++) {
    var currentBoard = boards[i];
    byBoard[currentBoard.name] = currentBoard;

    var aliases = currentBoard.aliases;
    if (Array.isArray(aliases)) {
      for (var j = 0; j < aliases.length; j++) {
        var currentAlias = aliases[j];
        byBoard[currentAlias] = currentBoard;
      }
    }
  }
  return byBoard;
}
function boardLookupTable() {
  var byBoard = {};
  for (var i = 0; i < boards.length; i++) {
    var currentBoard = boards[i];
    byBoard[currentBoard.name] = currentBoard;

    var aliases = currentBoard.aliases;
    if (Array.isArray(aliases)) {
      for (var j = 0; j < aliases.length; j++) {
        var currentAlias = aliases[j];
        byBoard[currentAlias] = currentBoard;
      }
    }
  }
  return byBoard;
}
function boardLookupTable ( ) { var byBoard = { } ; for ( var i = 0 ; i < boards . length ; i ++ ) { var currentBoard = boards [ i ] ; byBoard [ currentBoard . name ] = currentBoard ; var aliases = currentBoard . aliases ; if ( Array . isArray ( aliases ) ) { for ( var j = 0 ; j < aliases . length ; j ++ ) { var currentAlias = aliases [ j ] ; byBoard [ currentAlias ] = currentBoard ; } } } return byBoard ; }
Generate an object with board name keys for faster lookup
@return {object} byBoardName
Generate an object with board name keys for faster lookup