Why does array splice doesn't work with array formatted string? When I say array formatted string I mean I use split() to make string into array.
function _formatText(text) {
var textList = text.replace(/\s+/g, ",").split(",");
return textList.splice(1, 0, "<br />").join(" ");
}
alert(_formatText("VERY VERY LONG TEXT"))