import { includes } from "https://deno.land/x/fun@v2.0.0/string.ts";
Creates a Predicate over string that returns true when a string includes the searchString at or beyond the optional starting position.
Examples
Example 1
Example 1
import { includes } from "./string.ts";
const hasSpace = includes(" ");
const result1 = hasSpace("Hello World"); // true
const result2 = hasSpace("Goodbye"); // false