Wednesday, August 16th, 2017

javascript trim function

0

Javascript trim function

Javascript trim function

function

trim(stringToTrim) {

return
stringToTrim.replace(/^\s+|\s+$/g,”");

}

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • RSS
  • Technorati
  • Twitter

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Secure Linux Web Hosting