For what it’s worth Array.from() [0] lets you pass a map style callback as its second argument, so Array.from(yourStr.matchAll(yourRegex), yourMapFn) works.
[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
No comments yet.