Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2ac312

Browse files
Merge pull request #3659 from eedrxs/patch-1
Fixed grammar error in regex-groups article.md
2 parents 774d0c1 + aacfc93 commit e2ac312

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎9-regular-expressions/11-regexp-groups/article.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ alert(results[0]); // <h1>,h1 (1st tag)
209209
alert(results[1]); // <h2>,h2 (2nd tag)
210210
```
211211

212-
As we can see, the first difference is very important, as demonstrated in the line `(*)`. We can't get the match as `results[0]`, because that object isn't pseudoarray. We can turn it into a real `Array` using `Array.from`. There are more details about pseudoarrays and iterables in the article <info:iterable>.
212+
As we can see, the first difference is very important, as demonstrated in the line `(*)`. We can't get the match as `results[0]`, because that object is a pseudoarray. We can turn it into a real `Array` using `Array.from`. There are more details about pseudoarrays and iterables in the article <info:iterable>.
213213

214-
There's no need in `Array.from` if we're looping over results:
214+
There's no need for `Array.from` if we're looping over results:
215215

216216
```js run
217217
let results = '<h1> <h2>'.matchAll(/<(.*?)>/gi);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /