import { string } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { startsWith } = string;
Creates a Predicate over string that returns true when the string starts with the supplied searchString starting at position, if it is supplied.
Examples
Example 1
Example 1
import { startsWith } from "./string.ts";
const withHello = startsWith("Hello");
const result1 = withHello("Hello World"); // true
const result2 = withHello("Goodbye"); // false
Parameters
searchString: T