Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/typical/str.ts>FilterNot

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
type alias FilterNot
import { type FilterNot } from "https://deno.land/x/rimbu@1.0.2/typical/str.ts";

Returns a string containing all the elements that do not match the given Sub type.

Examples

Example 1

FilterNot<'abcd', 'b'> => 'acd'
FilterNot<'abcd', 'b' | 'd'> => 'ac'

Type Parameters

S extends string
Sub extends string & NonEmptyString<Sub>
definition: FilterNotHelper<S, Sub, "">