Skip to content

Instantly share code, notes, and snippets.

@snowman-repos
Created February 6, 2014 08:48
Show Gist options
  • Save snowman-repos/8840553 to your computer and use it in GitHub Desktop.
Save snowman-repos/8840553 to your computer and use it in GitHub Desktop.
A string trim function
String::trim = ->
@replace /^\s+|\s+$/g, ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment