Member Junction
    Preparing search index...

    Function ClampSessionSecondsValue

    • The ONE implementation of the session-cap rule, shared by the drivers (BaseRealtimeModel.ClampSessionSeconds) and the MJAPI relay: returns the smallest candidate that is a positive integer; ignores undefined, 0, negatives, fractions (rejected, never floored: no guessing), NaN, Infinity and non-numbers. undefined when none qualifies.

      Parameters

      • ...candidates: readonly number[]

      Returns number