Check if each element in an Array is equal to the first (uses === so no objects)
===
import { array } from "@rjweb/utils"array.equal([1, 2, 3, 4, 5]) // falsearray.equal([1, 1, 1, 1]) // true Copy
import { array } from "@rjweb/utils"array.equal([1, 2, 3, 4, 5]) // falsearray.equal([1, 1, 1, 1]) // true
1.5.4
nodejs, browser
Check if each element in an Array is equal to the first (uses
===
so no objects)