import { type Contains } from "https://deno.land/x/rimbu@1.0.2/typical/str.ts";
Returns true if the given string contains the given Amount (default 1) of Sub types.
Examples
Example 1
Example 1
Contains<'abcba', 'b'> => true
Contains<'abcba', 'b', 2> => true
Contains<'abcba', 'b', 3> => false
Contains<'abcba', 'q'> => false