Here's a sample from Redux.js I am reding on github. Can someone please explain the syntax used here?
var currentListeners = []
var nextListeners = currentListeners
....
someFunc() {
// THIS:
var listeners = currentListeners = nextListeners
for (var i = 0; i < listeners.length; i++) {
listeners[i]()
}
.....
}
Are the multi-assignment and for statements independent? that would explain it. But what the missing semicolon at the end of the assignment? good practice / bad practice?