public/js/app.js
/**
  * @param {string} playlistId The unique id of the playlist object
  * @param {object} playlist The playlist object to be updated
  */
@param {string} playlistId The unique id of the playlist object
@param {object} playlist The playlist object to be updated
@param { string } playlistId The unique id of the playlist object @param { object } playlist The playlist object to be updated
function _updatePlaylist(playlistId, playlist) {
  var index = _playlists.findIndex(function (p) {
    return p.id === playlistId;
  });
  _playlists[index] = playlist;
}
function _updatePlaylist ( playlistId , playlist ) { var index = _playlists . findIndex ( function ( p ) { return p . id === playlistId ; } ) ; _playlists [ index ] = playlist ; }
@param {string} playlistId The unique id of the playlist object
 @param {object} playlist The playlist object to be updated
@param { string } playlistId The unique id of the playlist object @param { object } playlist The playlist object to be updated