trim-end ()
Removes whitespace from the end of a string.
Parameters
$string
- The source string from which to remove trailing whitespace.
- Type
String
Return Value
String
- A string stripped of whitespace from its end. If the end of source string has no whitespace, the string is simply returned, with no exception being thrown.
Example
@use '@sass-fairy/string';
@debug string.trim-end(' Hey, you guys! ');
// " Hey, you guys!"