In Python
you can do something like this
>>> a = ('a', 'b')
>>> b = ('a', 'b')
>>> a == b
True
However in Typescript
type test = [string, string];
var data1: test = ['a', 'b'];
var data2: test = ['a', 'b'];
console.log(data1 == data2); // return false
console.log(data1 === data2); // return false
equality check for two data of the same type is using reference, I know I can loop through the array but are there syntactic sugar to check for data equality analogous to Python
tuple
?