I'm tinkering with some code found here: http://www.benknowscode.com/2012/11/selecting-ranges-jquery-ui-datepicker.html
It's all pretty clear except for one line-- in the code two vars are set to -1. Then they are used like this:
var cur = -1, prv = -1;
prv = +cur; // what does this do?
console.log(prv); // results -1
console.log(cur); // results -1
I'm familiar with the += usage-- but I haven't seen this usage before and don't understand why what appears to be (-1) + (-1) = -1
What am I missing?