UNPKG

marko

Version:

UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.

17 lines (12 loc) 283 B
function KeySequence() { this.___lookup = Object.create(null); } KeySequence.prototype.___nextKey = function (key) { var lookup = this.___lookup; if (lookup[key]) { return key + "_" + lookup[key]++; } lookup[key] = 1; return key; }; module.exports = KeySequence;