Can someone please tell me what this javascript code does? I came across it in a jQuery routine to select table rows.
Each of the following can range from -1 to the table-row count -1:
- lastIndex is the row number of the last-seleted row.
- thisIndex is the row number of the currently-selected row.
Code:
thisIndex = [lastIndex, lastIndex = thisIndex][0] ;
Help!