In jQuery core, I found the following code convention:
nth: function(elem, i, match){ return match[3] - 0 === i; },
And I really liked the match[3] - 0 snippet
Googling "-0" on google is not very productive, and a search for "minus zero" returns a link to Bob Dylan's song.
So can someone tell me. Is this some kind of performance trick, or is there a reason for this rather than parseInt or parseFloat ?
javascript jquery
James Wiseman Apr 19 2018-10-10T00: 00Z
source share