• Checks whether the target characters appear appear in the whitelist

    Example

    expect(isWhitelisted('baz-foo', 'abcdefghijklmnopqrstuvwxyz-').value).toBeTruthy()
    

    Parameters

    • target: string

      The target string

    • whitelist: string

      The white list

    Returns Result<boolean | undefined>

Generated using TypeDoc