Check if two arrays are shallow equal, this also checks if the two arrays are in the same order
example:
it('test shallowArrayEqual function', () => { const arr1 = [1, 2, 3] const arr2 = [1, 2, 3] const arr3 = [1, 3, 2] expect(shallowArrayEqual(arr1, arr2)).toBeTruthy() expect(shallowArrayEqual(arr1, arr3)).toBeFalsy()
Generated using TypeDoc
Check if two arrays are shallow equal, this also checks if the two arrays are in the same order
example: