How to replace string with multiple?


#1

I world like to replace string with multiple

var str = 'a b c d e';
str.replaceMul...([a, b, c, d, e], [f, g, h, i, j]);
// result: f g h i j

Please help me (I use underscore, -string).


Function to convert of string like this: "12 -> 12, 21" - "123 -> 123, 132, 231, 213, 312, 321"?