From f8313dc936c5d6b594a3c0efff7c992cee3f46cc Mon Sep 17 00:00:00 2001 From: Ahmed Elaguab Date: Fri, 28 May 2021 16:53:44 +0100 Subject: [PATCH] Update article.md --- 9-regular-expressions/17-regexp-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/9-regular-expressions/17-regexp-methods/article.md b/9-regular-expressions/17-regexp-methods/article.md index d4092181e0..f281457901 100644 --- a/9-regular-expressions/17-regexp-methods/article.md +++ b/9-regular-expressions/17-regexp-methods/article.md @@ -65,7 +65,7 @@ There are 3 differences from `match`: 1. It returns an iterable object with matches instead of an array. We can make a regular array from it using `Array.from`. 2. Every match is returned as an array with capturing groups (the same format as `str.match` without flag `pattern:g`). -3. If there are no results, it returns not `null`, but an empty iterable object. +3. If there are no results, it returns an empty iterable object instead of `null`. Usage example: