Function defaultComparator

  • The default comparator for distinct nodes - a function to determine if two values are equal. Works for primitive values.

    Type Parameters

    • T

    Parameters

    • current: T
    • next: T

    Returns boolean