Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if string contains word nodejs

'a nice string'.includes('nice') //true
'a nice string'.includes('nice', 3) //false
'a nice string'.includes('nice', 2) //true
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #check #string #word #nodejs
ADD COMMENT
Topic
Name
4+5 =