converter string em matriz com condição javaScirpt

string.split('-');
calyCoder