Hey,
Actually, I included the full output which is an array having an object keyed by group.
I should’ve included just the groups output for more clarity. Thanks for pointing out buddy!😀👍
This is what I see as the output showing on the page:
matchObj.indices.groups; /* Output - [0,4] */
There's no object showing there...
I was referring to the snippet just above this one 😅 I should’ve returned the full object instead of returning just the indices.
Updated the post. Thanks 👍
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hey,
Actually, I included the full output which is an array having an object keyed by group.
I should’ve included just the groups output for more clarity.
Thanks for pointing out buddy!😀👍
This is what I see as the output showing on the page:
There's no object showing there...
I was referring to the snippet just above this one 😅
I should’ve returned the full object instead of returning just the indices.
Updated the post. Thanks 👍