Method replaceAll documentation
Looks for and replaces parts of string with what we want.
bbn.fn.replaceAll('day', 'night', 'Today is a beautiful day');
//"Tonight is a beautiful night"
Looks for and replaces parts of string with what we want. - With the first argument you define what to replace,
the second argument with what you have to replace instead and the third argument is the string to be replaced.
BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way