()
| 1 | var Player = function() { |
| 2 | this.songQueue = []; |
| 3 | this.currentSong = null; |
| 4 | }; |
| 5 | |
| 6 | Player.prototype.shuffle = function() { |
| 7 | this.songQueue.sort(() => { return Math.random() > 0.5 ? 1 : 0; }); |
nothing calls this directly
no outgoing calls
no test coverage detected