UNPKG

time-uuid

Version:

Universally unique identifier in short web friendly (non UUID) format

12 lines (10 loc) 257 B
'use strict'; module.exports = function (t, a) { var last; a(typeof t(), 'number', "Type"); a.not(t(), t(), "Unique"); last = t(); a(t.increment(), ++last, "Increment"); a(t.increment(), ++last, "Increment #2"); a(t() > ++last, true, "Further"); };