@wtasnorg/node-lib / containsFuncString
containsFuncString(
s,f):boolean
Defined in: src/strings.ts:199
ContainsFunc reports whether any Unicode code point r in s satisfies f(r).
string
Input string.
(_ch) => boolean
Predicate function receiving each character.
boolean
True if any character satisfies f.
containsFunc("hello", ch => ch === "e"); // true
containsFunc("hello", ch => ch === "z"); // false
containsFunc("", () => true); // false — empty string has no chars