uniqid

uniqid = (function () {
var id = 0; return function () { return id++; };
})();

source

Leave a Reply