@wtasnorg/node-lib / containsRuneString
containsRuneString(
s,r):boolean
Defined in: src/strings.ts:218
ContainsRune reports whether the Unicode code point r is within s.
string
Input string.
number
Unicode code point to search for.
boolean
True if r is found in s.
containsRune("hello", 104); // true — 'h' (U+0068)
containsRune("hello", 122); // false — 'z' not in "hello"
containsRune("hello", -1); // false — negative rune always returns false
containsRune("", 97); // false — empty string