Function trueLast

  • Compares two values and puts true last.

    See

    trueFirst

    Example

    // use compareBy to broaden to truthy and falsy values
    const truthyLast = compareBy(x => !!x, trueLast);

    Parameters

    • a: boolean

      first value

    • b: boolean

      second value

    Returns number

Generated using TypeDoc