-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/more string methods #725
Feature/more string methods #725
Conversation
Apologies I will get around to this! Will try my best to have a look tomorrow for you mate |
At your leisure. No rush. :D |
testStringCollapseSpaces() { | ||
const testString = "This is a huge string of a lot of spaces."; | ||
const expected = "This is a huge string of a lot of spaces."; | ||
const res = testString.collapseSpaces(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably worth adding some tests to ensure the original string is also untouched
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
Signed-off-by: Brian Downs <[email protected]>
e0f3348
to
c01149d
Compare
Thanks for this! |
What's Changed:
Adds collapseSpaces and wrap methods to string type.
Type of Change:
Housekeeping:
Screenshots (If Applicable):