Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find space in string js

var containsWhitespace = function(str){
	return /s/g.test(s);
};
console.log(containsSpaces("foo bar"));//Returns true
console.log(containsSpaces("foobar"));//Returns false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #space #string #js
ADD COMMENT
Topic
Name
6+5 =