Need to iterate over all regex matches in a string? `String#matchAll` makes this easier than ever: https://github.com/tc39/String.prototype.matchAll …pic.twitter.com/REDOm32IJT
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
And in most cases, you wouldn’t even need to spread. Only spread if you explicitly need an array for some reason.
Usually I would want an array of a specific submatch, so I would now do something like: [...string.matchAll(regex)].map(x => x[1])
or Array.from(string.matchAll(regex), x => x[1]) to avoid extra array
Totally love this!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.