I am writing a test case using jest in to test the data returned from a method.The method returns array of non repeating elements.Now i am trying to use expect() in jest to test whether the array returned from the method has only unique elements.
Returned array from method
arr = [ 'Pizza' ,'Burger' , 'HotDogs'] // All elements are unique
Are there any jest matchers like below to check non repeating elements in array ?
expect(arr).toBeUnique()
Or any logic using existing matchers should be done ?