Chalkboard - v3.0.4
    Preparing search index...

    Function ineq

    • Checks if the elements of an array are less than (or equal to) and greater than (or equal to) a number or the elements of another array, and then returns an array with the elements that pass the check.

      Parameters

      • arr: number[]

        The array

      • inf: number | number[]

        The array or number to check "less than (or equal to)" with

      • sup: number | number[]

        The array or number to check "greater than (or equal to)" with

      • OptionalincludeInf: boolean = false

        Whether the check is "less than" (false) or "less than or equal to" (true)

      • OptionalincludeSup: boolean = false

        Whether the check is "greater than" (false) or "greater than or equal to" (true)

      Returns number[]

      const result = Chalkboard.stat.ineq([1, 2, 3, 4, 5], 2, 4, true, true); // Returns [2, 3, 4]