Chalkboard - v3.0.4
    Preparing search index...

    Function lt

    • Checks if the elements of an array are less 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

      • arrORnum: number | number[]

        The array or number

      • OptionalincludeEnd: boolean = false

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

      Returns number[]

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