Exclude

The Exclude modifier excludes blacklisted characters from the string, or only includes whitelisted characters.

Types

  • String

Constructor

new Exclude (

blacklist: string[],

useWhitelist = false,

clamp = true,

rangeStart: number | undefined = undefined,

rangeEnd: number | undefined = undefined,

)

blacklist: The list of characters to be excluded from the returned string.
useWhitelist: Whether or not the blacklist should be treated as a whitelist instead.
clamp: Whether blacklisted characters should be clamped to the nearest allowed character or removed from the string.
rangeStart: The time at which the modifier begins to modify the curve.
rangeEnd: The time at which the modifier no longer modifies the curve.\


import { Modifiers } from 'curves'; // Import Modifiers

const exclude = new Modifiers.String.Exclude(['a', 'b', 'c']); // Create a new exclude modifier