I'm trying to use matchAll like this:
const regexp = /t(e)(st(\d?))/g;
const str = 'test1test2';
const array = [...str.matchAll(regexp)];
but I got error:
matchall is not function or its return value is not iterable
Maybe my browser or js version not supported.
but which alternative i have for matchAll for lower versions?
tnx