Share your code.
string.prototype.matchall
string.prototype.matchall 
ES Proposal spec-compliant shim for String.prototype.matchAll. Invoke its "shim" method to shim String.prototype.matchAll if it is unavailable or noncompliant.
This package implements the es-shim API interface. It works in an ES3-supported environment, and complies with the proposed spec.
Most common usage:
const assert = ;const matchAll = ; const str = 'aabc';const nonRegexStr = 'ab';const globalRegex = /[ac]/g;const nonGlobalRegex = /[bc]/i; // non-regex arguments are coerced into a global regexassert; assert; assert; matchAll; // will be a no-op if not needed // non-regex arguments are coerced into a global regexassert; assert; assert; Tests
Simply clone the repo, npm install, and run npm test

