Skip to content

Instantly share code, notes, and snippets.

@omarkdev
Created February 27, 2020 14:33
Show Gist options
  • Save omarkdev/f5105649569e03e3bb52d9fd9db4bad0 to your computer and use it in GitHub Desktop.
Save omarkdev/f5105649569e03e3bb52d9fd9db4bad0 to your computer and use it in GitHub Desktop.
const message = ' Hello world! ';
message.trimEnd();
// " Hello world!"
message.trimStart();
// "Hello world! "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment