Some more detail on that `String.prototype.matchAll` example: https://mathiasbynens.be/notes/es-regexp-proposals#matchAll …
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
this is just the g flag, right?
-
This is useful for global (`g`) or sticky (`y`) regular expressions.
End of conversation
New conversation -
-
-
I'm really excited about this feature. It was so convoluted before. Now just `[...string.matchAll(regex)]` to get all matches!
-
And in most cases, you wouldn’t even need to spread. Only spread if you explicitly need an array for some reason. - 3 more replies
New conversation -
-
-
@wesbos Why use "const" instead of "let" in that bucle? - 1 more reply
New conversation -
-
-
gotta love the sexy new ES
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
looks like
@ljharb is the championThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@codepo8 I was surprised it didn't exist already. I've implemented it herehttps://github.com/sithmel/iter-tools/blob/master/README.md#regexp-exec …Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.