I have an array which is called ids_to_remove. When I type it in browser inspect, I get the following result:
ids_to_remove
(2) ['1', '2']
When I type in the same array I get:
['1','2']
(2) ['1', '2']
When I compare the elements I get:
ids_to_remove[0]==='1'
true
ids_to_remove[1]==='2'
true
also
typeof(ids_to_remove[0])
'string'
But when I compare the arrays:
ids_to_remove===['1','2']
false
Does anyone have any idea why these two arrays are not equal?