I am working on a part of the code where I have an array which looks like [[data]]. The data is rendered on the server side through the Django temp
[[data]]
data
Because [] creates a new array, so you are comparing one array object with another array object.
[]
It's not the contents of the arrays that is compared, the object references are compared. They are not equal because it's not the same object instance.