MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / nextUid

Function nextUid

code/songhop/www/lib/angular/angular.js:370–372  ·  view source on GitHub ↗

* A consistent way of creating unique IDs in angular. * * Using simple numbers allows us to generate 28.6 million unique ids per second for 10 years before * we hit number precision issues in JavaScript. * * Math.pow(2,53) / 60 / 60 / 24 / 365 / 10 = 28.6M * * @returns {number} an unique alph

()

Source from the content-addressed store, hash-verified

368 * @returns {number} an unique alpha-numeric string
369 */
370function nextUid() {
371 return ++uid;
372}
373
374
375/**

Callers 3

ScopeFunction · 0.70
$RootScopeProviderFunction · 0.70
radioInputTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected