-
Notifications
You must be signed in to change notification settings - Fork 55
Shachars branch #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
shacharmalka1
wants to merge
15
commits into
suvelocity:master
Choose a base branch
from
shacharmalka1:shachars-branch
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Shachars branch #12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isIdExist is checking if some id is exist in the array of songs. removeSongs is removeing the id from the array songs and playlist
the function is remove the playlist with the id argument
function duratinFormat is present the duration according to the format
return the max id
newId is return the max id+1 addSong is pushing to the array songs
pushing to the array playlist
used with the function playSong
checking if id is existing in songs and in playlist if id is existing but not in the songs array so added the id to the songs array
function oppositDuration is changes the duration from the format to seconds change the push to the array
Returns the total duration of the entire playlist with the given ID.
…tPlaylist function findPlaylistId find the playlist with the id that she is get function removeSongsFromPlaylist remove the song only from the playlist editPlaylist is working
…Duration arrLengthmPlaylist return array with the minimum range and the object same for arrLengthSongs searchByDuration return the object with the minimum range from the playlist and songs
results create array with array of songs and playlist and return this array
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
it was very fun thank you for making my holiday :)