src/api.js
// Get selected details of a specific album or playlist.
Get selected details of a specific album or playlist.
Get selected details of a specific album or playlist .
function extractItemDetails(item) {
  const { name, external_urls: { spotify: spotify_url} } = item;
  const artist_details = extractArtistDetails(item);
  const image_details = extractImageDetails(item);
  const track_details = extractTrackDetails(item);
  return {
    name,
    spotify_url,
    ...artist_details,
    ...image_details,
    ...track_details
  };
}
function extractItemDetails ( item ) { const { name , external_urls : { spotify : spotify_url } } = item ; const artist_details = extractArtistDetails ( item ) ; const image_details = extractImageDetails ( item ) ; const track_details = extractTrackDetails ( item ) ; return { name , spotify_url , ... artist_details , ... image_details , ... track_details } ; }
Get selected details of a specific album or playlist.
Get selected details of a specific album or playlist .