cartodb-4.42/lib/assets/javascripts/new-dashboard/utils/replace-all.js

6 lines
147 B
JavaScript
Raw Normal View History

2024-04-06 13:25:13 +08:00
const replaceAll = function replaceAll (str, find, replace) {
return str.replace(new RegExp(find, 'g'), replace);
};
export default replaceAll;