• 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

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

    • sup: number

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

    • Optional includeInf: boolean = false

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

    • Optional includeSup: boolean = false

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

    Returns number[]

Generated using TypeDoc