So I have several arrays that are all stored in the same place and I need a way of distinguishing them with code. The arrays come in two types:
Type One:
Array = [Literally-any-value-1, [Literally-any-values-2]]
Type Two:
Array = {
“One”: “”,
“Two”: “”
}
Type two only shows up once or twice but always looks the same, the values in type one can literally be anything. I cannot work out how to do a test for Type Two as even though it is constant: if (Array = Array) does not register.
How can I test for and separate the two types?