How to use the string.prototype.matchall polyfill?
问题 I want String.prototype.matchAll() method to be working in edge browser as well. So thought of using the "string.prototype.matchall" npmjs package I have installed this package and imported in my main.js file like so import 'string.prototype.matchall'; I have to use this method in other file say Input.js. so I use like below const matchAll = require('string.prototype.matchall'); And in the method where this I actually match the strings is below replace = (original_string) => { const regex