code: function getColumnWithNameOrId(nameOrId, columns) {
    for (var i = 0; i < columns.length; i++) {
      if (columns[i].name === nameOrId || columns[i].id === nameOrId) {
        return columns[i];
      }
    }
  }
docs: Returns the first column with the given name or id, or undefined if none match.
  @param {String} nameOrId The column name or id.
  @param {TableColumn[]} columns Test on these columns.
  @returns {TableColumn} The matching column.
  @private