Skip to content

includes

includes(substring): (s) => boolean

Defined in: Utils/Str.ts:45

Returns true when the string contains the given substring.

string

(s): boolean

string

boolean

pipe("hello world", Str.includes("world")); // true
pipe("hello world", Str.includes("xyz"));   // false