Could you help me verify the type of obj below?
Question 1:
const arr = ["a", "b", "c"]
is equivalent to
arr = {
0: "a",
1: "b",
2: "c"
}
Is this correct?
Question 2: My object is
const myObjects = {
"1111": {
isField: true,
mySet: ["one", "two"] // this is Set
},
"2222": {
isField: false,
mySet: ["one"] // this is Set
},
}
The type of arr (Question 1) is an array in typescript. Then, what is the type of myObjects (Question 2)?