I was wondering if all the iterables predefined in JavaScript that have the property .length
, can access their elements via operator [<indice numérico>]
and vice versa?
Array -> '.length' & operador '[]'
String -> '.length' & operador '[]'
TypedArray -> '.length' & operador '[]'
Set -> no tiene '.length' & no accede a los elementos iterados via '[]'
Map -> no tiene '.length' & no accede a los elementos iterados via '[]'
HTMLCollection -> '.length' & operador '[]'
I find that they all have length, you can access their iterated elements via the operator [] and vice versa. I ask if there are any exceptions.