• Get the Mode of all Numbers in an Array

    Parameters

    • input: number[]

    Returns number

    Example

    import { array } from "@rjweb/utils"

    const arr = [4, 65, 76, 90, 1, -3, 4, 4, 65, 65]

    array.mode(arr) // 4

    Since

    1.12.18

    Supports

    nodejs, browser