Edit File: index.js
module.exports = function(length) { var last = null , repeat = 0 if (typeof length == 'undefined') length = 15 return function() { var now = Math.pow(10, 2) * +new Date() if (now == last) { repeat++ } else { repeat = 0 last = now } var s = (now + repeat).toString() return +s.substr(s.length - length) } }
Back to File Manager