cartodb/lib/assets/javascripts/new-dashboard/utils/replace-all.js
2020-06-15 10:58:47 +08:00

6 lines
147 B
JavaScript

const replaceAll = function replaceAll (str, find, replace) {
return str.replace(new RegExp(find, 'g'), replace);
};
export default replaceAll;