• Filters the array

    Example

    whereBetween([1, 2, 2, 3, 4, 4, 5], 3,4); // [3,4,4]
    

    Type Parameters

    • T

    Parameters

    • arr: T[]
    • start: T
    • end: T

    Returns T[]

  • Filters the array

    Example

    whereBetween([{count:1}, {count:20}, {count:15}], "count", 1, 15); // [{count:1},{count:15}]
    

    Type Parameters

    • T

    Parameters

    • arr: T[]
    • field: string
    • start: unknown
    • end: unknown

    Returns T[]

Generated using TypeDoc