|
|
|
|
|
by qsort
1998 days ago
|
|
That behavior does make sense in the context of Javascript. > {a: 1, b: 2}['c']
undefined
> {1: 1, 3: 2}[2]
undefined
If you're arguing that JS objects shouldn't be like that, you do have a point. But taking JS basic semantics as a given, I don't see what other behavior you would expect. |
|