News for hackers. Stuff that matters.
Re:Understanding JavaScript Arrays by robryan on Saturday July 24, 2010 @03:09PM (#1544212)
Also you can use associate array notation to access an object property. Found this out after previously using eval to access a dynamic property name.
Re:Understanding JavaScript Arrays by code_duck on Sunday July 25, 2010 @02:22AM (#1545079)
yes, that's right - item.akey is interchangeable with item['akey'], but the latter form accepts expressions as the key value.