aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2022-02-17 22:14:41 +0530
committerGitHub <noreply@github.com>2022-02-17 22:14:41 +0530
commiteb9cc0ee7c83cb825196768a0dce6a9afeb23339 (patch)
treeb8ad288238223066c552059437ec24b2a2755620 /README.md
parent3a7ba0bd48a80445813bdb3ea2b0f22005489800 (diff)
downloadelxr-main.tar.gz
elxr-main.zip
Update README.mdHEADmain
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 157b4d2..b09bae8 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,7 @@ matchAll(/ [seperator true], [id \s\T]+ /, [
#### replaceAll
```js
-// | Match for any number or any non-empty string or any object with `prop` is true
+// | Replace any sequence of one or more numbers by their sum
const replacer = (_, matches) => matches.value.reduce((a, b) => a + b, 0)
replaceAll(/ \n+ /, replacer, [ 'start', 3, 5, 'mid', 2, 0, 4, 'end' ])