contains(s: utf8, needle: utf8) → bool

Category: [strings](builtinsstrings)_

Whether a string contains a substring.

ParameterTypeDescriptionRemarks
sutf8The string to search.
needleutf8The substring to look for.
returnsbooltrue if the substring is present.
wcl
contains("hello", "ell")   // does the string contain the substring? → true