code: function(columnOrIndex) {
          var name, index, result;
  
          if (typeof columnOrIndex === 'number') {
              index = columnOrIndex;
              name = this.schema[index].name;
          } else {
              name = columnOrIndex;
              index = this.schema.findIndex(function(columnSchema) {
                  return columnSchema.name === name;
              });
          }
  
          if (name && index >= 0) {
              result = {
                  name: name,
                  index: index
              };
          }
  
          return result;
      }
docs: TEMPORARY. This function included here until next version of base is published.
  The change was to use schema rather than getFields().
  (The current version in base is not in use because it's only used from here.)
  
  Get new object with name and index given the name or the index.
  @param {string|number} columnOrIndex - Column name or index.
  @returns {{name: string, index: number}}