Split Artist - Title Javascript : I have the following script:

    const Parser = require('../src');
    
    const radioStation = new Parser('http://stream.com/live_32.aac');
    
    radioStation.on('metadata', function(metadata) {
        console.log([metadata.StreamTitle]);
    });

The output of the console is: Artist - Title
I want to split the Artist and Title.

I found something like: 

    str.split(separator)

But it's not working correct.

Does any one have a solution?


