src/api/v4/layer/layer.js
function _getInteractivityFields (columns) {
  var fields = columns.map(function (column, index) {
    return {
      name: column,
      title: true,
      position: index
    };
  });

  return {
    fields: fields
  };
}
function _getInteractivityFields (columns) {
  var fields = columns.map(function (column, index) {
    return {
      name: column,
      title: true,
      position: index
    };
  });

  return {
    fields: fields
  };
}
function _getInteractivityFields ( columns ) { var fields = columns . map ( function ( column , index ) { return { name : column , title : true , position : index } ; } ) ; return { fields : fields } ; }
Scope functions 
Transform the columns array into the format expected by the CartoDBLayer.
Scope functions Transform the columns array into the format expected by the CartoDBLayer .