Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
var space = "\u00a0";
Note that
songs
is a global array.When your function is called the first time, it modifies the array. (parses and replaces the playback times)
The second time your function is called, you get the error, because you are trying to parse the playbacks again even though they are already integers.
You either need to modify the array once (outside the function).
Or create a new array with the parsed values if you want to do this every time the function is called.