Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What’s New in ES2019. Parent comment
> (str.match(regexWithGroup) || [, null])[1]
I.e. if the regex matches, then give me the first group (1st index) otherwise give me null.
There are no comments on this comment yet.
> (str.match(regexWithGroup) || [, null])[1]
I.e. if the regex matches, then give me the first group (1st index) otherwise give me null.