Type Alias ConditionPredicate

ConditionPredicate: ((version: 4 | 6, isCidr: boolean) => boolean)

The type of the optional callback function to filter out IP addresses that do not match the condition(s) specified by this predicate.

Type declaration

    • (version, isCidr): boolean
    • Parameters

      • version: 4 | 6

        By default, both IPv4 and IPv6 addresses are acknowledged.

      • isCidr: boolean

        By default, both CIDRs and non-CIDRs are acknowledged.

      Returns boolean

""