Logo

Programming-Idioms

History of Idiom 39 > diff from v4 to v5

Edit summary for version 5 by :

Version 4

2015-08-11, 12:29:34

Version 5

2015-08-19, 14:49:23

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Idiom #39 Check if string contains a word

Set boolean ok to true if string word is contained in string s as a substring, or to false otherwise.

Code
let ok=s.contains(word);