8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
trim()
1 parent 394125c commit 097e318Copy full SHA for 097e318
components/string.rst
@@ -298,7 +298,7 @@ Methods to Pad and Trim
298
// repeats the given string the number of times passed as argument
299
u('_.')->repeat(10); // '_._._._._._._._._._.'
300
301
- // removes the given characters (whitespace characters by default) from the string
+ // removes the given characters (default: whitespace characters) from the beginning and end of a string
302
u(' Lorem Ipsum ')->trim(); // 'Lorem Ipsum'
303
u('Lorem Ipsum ')->trim('m'); // 'Lorem Ipsum '
304
u('Lorem Ipsum')->trim('m'); // 'Lorem Ipsu'
0 commit comments