Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js check if string contains character

"FooBar".includes("oo"); // true

"FooBar".includes("foo"); // false

"FooBar".includes("oo", 2); // false
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #check #string #character
ADD COMMENT
Topic
Name
4+3 =