Function nullishFirst

  • Compares two values and puts null and undefined first. Returns 0 if both values are null-ish or not null-ish.

    See

    nullishLast

    Type Parameters

    Type Parameters

    • T

    Parameters

    • a: T

      first value

    • b: T

      second value

    Returns number

Generated using TypeDoc