News for hackers. Stuff that matters.
Re:Why I'm still using jQuery by leeoniya on Monday May 27, 2019 @08:54AM (#20021747)
converts the date object to a unix timestamp* (int). a + works for coercing stuff to numbers. e.g. +"0.5" is quicker than paraseFloat("0.5") and also saves you from having to know if you need to use parseFloat or parseInt. coersion to strings can also be done by appending to an empty string: "" + 0.5.

* in ms

There are no comments on this comment yet.