• Remove characters that do not appear in the whitelist. The characters are used in a RegExp and so you will need to escape some chars, e.g. whitelist(input, '\\[\\]').

    Parameters

    • target: string

      The target

    • chars: string

      The chars

    Returns Result<string | undefined>

Generated using TypeDoc