client/js/utils/PlaylistUtils.js
/**
   * @param {string} playlistId The unique id of the playlist object
   * @param {integer} songInex The unique id of the song object
   */
@param {string} playlistId The unique id of the playlist object
@param {integer} songInex The unique id of the song object
@param { string } playlistId The unique id of the playlist object @param { integer } songInex The unique id of the song object
update(playlistId, playlist) {
    playlist = converter.toJsonApi(playlist, {
      type: 'playlists'
    });
    API.update('playlists', playlist)
      .then((playlist) => {
        playlist = converter.toSimple(playlist);
      })
      .catch((error) => {
        console.log(error);
      });
  }
update ( playlistId , playlist ) { playlist = converter . toJsonApi ( playlist , { type : 'playlists' } ) ; API . update ( 'playlists' , playlist ) . then ( ( playlist ) => { playlist = converter . toSimple ( playlist ) ; } ) . catch ( ( error ) => { console . log ( error ) ; } ) ; }
@param {string} playlistId The unique id of the playlist object
 @param {integer} songInex The unique id of the song object
@param { string } playlistId The unique id of the playlist object @param { integer } songInex The unique id of the song object