• Check if each element in an Array is equal to the first (uses === so no objects)

    Parameters

    • input: any[]

    Returns boolean

    Example

    import { array } from "@rjweb/utils"

    array.equal([1, 2, 3, 4, 5]) // false
    array.equal([1, 1, 1, 1]) // true

    Since

    1.5.4

    Supports

    nodejs, browser