Multiple replace for array.
npm install -S @jswork/next-array-replace
import '@jswork/next-array-replace';
const arr= [
[/a/g,'A'],
['hello','world']
];
const str = 'aaa-bbb-1234 hello Fei!';
const res = nx.arrayReplace( str, arr);
// AAA-bbb-1234 world Fei!
Code released under the MIT license.