Skip to content

Commit

Permalink
docs: fix type from Rich-Harris#222
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Oct 17, 2024
1 parent 4d03772 commit bfefb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ The differences from [`String.replace`]((https://developer.mozilla.org/en-US/doc
### s.replaceAll( regexpOrString, substitution )

Same as `s.replace`, but replace all matched strings instead of just one.
If `substitution` is a regex, then it must have the global (`g`) flag set, or a `TypeError` is thrown. Matches the behavior of the builtin [`String.property.replaceAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll).
If `regexpOrString` is a regex, then it must have the global (`g`) flag set, or a `TypeError` is thrown. Matches the behavior of the builtin [`String.property.replaceAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll). Returns `this`.

### s.remove( start, end )

Expand Down

0 comments on commit bfefb33

Please sign in to comment.