Skip to content

Conversation

@angusm
Copy link
Member

@angusm angusm commented Nov 27, 2020

No description provided.

* Strip characters from the left and right side of a string
*/
static trim(value: string, characters: string[] = [' ']): string {
return stringf.lstrip(stringf.rstrip(value, characters), characters);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this just value.trim()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants