I was exploring an open source library and I came across the following syntax:
var item = res[cycle++] || res[cycle = 0, cycle++];
I have never seen array indexing with two elements separated by a comma like that. I tested it out in chrome dev tools, and it seems like it always returns the array value at the second index; JavaScript seems to like the syntax.