we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to check if text input has spaces javascript"
Nicolás
28 Jul 2017
1function hasWhiteSpace(s) {
2  return s.indexOf(' ') >= 0;
3}
4