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