Shuffling an array, solved. Shuffle the songs! (Solution for an extra challange from the "Build a Library" project.)

I think that this solution is pretty easy to implement and doesn’t include for loops , just a sort function.

shuffle(){

let len = this._songs.length;

let random = Math.floor(Math.random()*len);

this._songs.sort(()=>{

 return random - Math.floor(Math.random()*len);

});

return this._songs;

}