Skip to main content

Function: areEquivalent()

areEquivalent(array1, array2): boolean

Defined in: utils/utils.ts:16

Checks if two arrays contain the same values. They need not be in the same order, but the arrays must be the same size and contain the same values.

Parameters

array1

(string | number)[]

array2

(string | number)[]

Returns

boolean