Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion en/Bases/Functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Functions you can use with a sequence of characters such as `"hello"`.
- `replacement` is the value to replace found patterns with.
- If `pattern` is a string, all occurrences of the pattern will be replaced.
- If `pattern` is a Regexp, the `g` flag determines if only the first or if all occurrences are replaced.
- Example: `""a:b:c:d".replace(/:/, "-")` returns `"a-b,c,d"`, where as `"a:b:c:d".replace(/:/g, "-")` returns `"a-b-c-d"`.
- Example: `"a:b:c:d".replace(/:/, "-")` returns `"a-b:c:d"`, where as `"a:b:c:d".replace(/:/g, "-")` returns `"a-b-c-d"`.

### `repeat()`

Expand Down