Depending on the type of index, if it is a string it accesses a field of the object, otherwise if it is numerical, attempts to access an index of an array object.
See Implementation
Depending on the type of index, if it is a string it accesses a field of the object, otherwise if it is numerical, attempts to access an index of an array object.