Skip to content

Commit 93cab0b

Browse files
committed
docs: update string function expression example docs
1 parent 1489c91 commit 93cab0b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/docs/examples/advanced/stringFnExpressions.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import { info } from "../../../../src/examples/advanced/stringFnExpressions.ts"
1111
This example shows how to use string functions within expressions.
1212

1313
The following string functions are supported:
14-
- replace(searchRegexp, replacement)
15-
- replaceAll(searchRegexp, replacement)
16-
- slice(start, end)
17-
- substring(start, end)
18-
- trimStart()
19-
- trimEnd()
20-
- trim()
21-
- toUpperCase()
22-
- toLowerCase()
14+
- `replace(searchRegexp, replacement)`: Replaces the first occurrence of a pattern matching the regular expression with a replacement string. See [`String.prototype.replace()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace).
15+
- `replaceAll(searchRegexp, replacement)`: Replaces all occurrences of a pattern matching the regular expression with a replacement string. See [`String.prototype.replaceAll()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replaceAll).
16+
- `slice(start, end)`: Extracts a section of a string and returns it as a new string, without modifying the original string. See [`String.prototype.slice()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice).
17+
- `substring(start, end)`: Returns the part of the string between the start and end indexes, or to the end of the string. See [`String.prototype.substring()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring).
18+
- `trimStart()`: Removes whitespace from the beginning of a string. See [`String.prototype.trimStart()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart).
19+
- `trimEnd()`: Removes whitespace from the end of a string. See [`String.prototype.trimEnd()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd).
20+
- `trim()`: Removes whitespace from both ends of a string. See [`String.prototype.trim()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim).
21+
- `toUpperCase()`: Converts a string to uppercase letters. See [`String.prototype.toUpperCase()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase).
22+
- `toLowerCase()`: Converts a string to lowercase letters. See [`String.prototype.toLowerCase()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase).
2323

2424
<RenderExample info={info} config={config} script={script} />

0 commit comments

Comments
 (0)