Skip to content

Instantly share code, notes, and snippets.

@batako
Created September 11, 2012 08:23
Show Gist options
  • Save batako/3696865 to your computer and use it in GitHub Desktop.
Save batako/3696865 to your computer and use it in GitHub Desktop.
トリミング関数
String.prototype.trim = function() {
return this.replace(/^\s+|\s+$/g, '');
}
@batako
Copy link
Author

batako commented Sep 11, 2012

string.trim() のように使用

@batako
Copy link
Author

batako commented Sep 11, 2012

string.trim() のように使用

@batako
Copy link
Author

batako commented Sep 11, 2012

test

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