import { type Str } from "https://deno.land/x/rimbu@1.1.0/typical/index.ts";
const { Filter } = Str;
Returns a string containing all the elements that match the given Sub type.
Examples
Example 1
Example 1
Filter<'abcd', 'b'> => 'b'
Filter<'abcd', 'b' | 'd'> => 'bd'
Type Parameters
Sub extends string & NonEmptyString<Sub>