code: function getIdColumns(idColumnNames, columns) {
    if (!defined(idColumnNames)) {
      return [];
    }
    return idColumnNames.map(name => getColumnWithNameIdOrIndex(name, columns));
  }
docs: columns is a required parameter.