dimanche 21 juillet 2019

sinon - how to check if a value is in an array?

I know that i can check a specific value in a specific index, for example - to check for the value at index 0:

sinon.assert.match(myArr[0], someValue)

But how do i check if someValue is anywhere in myArr?

Aucun commentaire:

Enregistrer un commentaire