import { type Str } from "https://deno.land/x/rimbu@0.13.1/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>