function makeData(raw) {
  var final = [];
  raw.forEach((d, idx) => {
    var tags = d.tags;
    var new_data = {};
    new_data["key"] = idx;
    new_data["title"] = d.title;
    new_data["artist"] = d.artist;
    new_data["album"] = d.album;
    new_data["id"] = d.id;
    new_data["primary_customer_track_id"] = d.primary_customer_track_id;
    tags.forEach(t => {
      if (t.type === 'KEY') {
        new_data[t.type] = transformKeys(t.name);
      } else {
        new_data[t.type] = t.name;
      }
    });
    final.push(new_data);
  });
  return final;
}
/**
 * Given raw data from response, make data suitable for display in table
 * @param {Array} raw Raw data array
 */
Given raw data from response, make data suitable for display in table
@param {Array} raw Raw data array
Given raw data from response make data suitable for display in table @param { Array } raw Raw data array
function makeData(raw) {
  var final = [];
  raw.forEach((d, idx) => {
    var tags = d.tags;
    var new_data = {};
    new_data["key"] = idx;
    new_data["title"] = d.title;
    new_data["artist"] = d.artist;
    new_data["album"] = d.album;
    new_data["id"] = d.id;
    new_data["primary_customer_track_id"] = d.primary_customer_track_id;
    tags.forEach(t => {
      if (t.type === 'KEY') {
        new_data[t.type] = transformKeys(t.name);
      } else {
        new_data[t.type] = t.name;
      }
    });
    final.push(new_data);
  });
  return final;
}
function makeData ( raw ) { var final = [ ] ; raw . forEach ( ( d , idx ) => { var tags = d . tags ; var new_data = { } ; new_data [ "key" ] = idx ; new_data [ "title" ] = d . title ; new_data [ "artist" ] = d . artist ; new_data [ "album" ] = d . album ; new_data [ "id" ] = d . id ; new_data [ "primary_customer_track_id" ] = d . primary_customer_track_id ; tags . forEach ( t => { if ( t . type === 'KEY' ) { new_data [ t . type ] = transformKeys ( t . name ) ; } else { new_data [ t . type ] = t . name ; } } ) ; final . push ( new_data ) ; } ) ; return final ; }
Given raw data from response, make data suitable for display in table
 @param {Array} raw Raw data array
Given raw data from response make data suitable for display in table @param { Array } raw Raw data array