When the order matters:
expect(array1).toEqual(array2)
We make sure that your target audience has the best possible experience with your digital product. You get:
Regardless of order:
expect(array1).toEqual(jasmine.arrayWithExactContents(array2))
Ignoring extra elements:
expect(array1).toEqual(jasmine.arrayContaining(array2))