UNPKG

app-decorators

Version:

Collection of useful ES7 Decorators, writtin in ES6, that can be used for building webapps

28 lines (24 loc) 848 B
System.register(['app-decorators/src/libs/element-to-function'], function (_export, _context) { "use strict"; var _elementToFunc; /** * Generate unique id * @source http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript#105074 * @returns {string} */ function guid() { function _s4() { return Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1); } return _s4() + _s4() + '-' + _s4() + '-' + _s4() + '-' + _s4() + '-' + _s4() + _s4() + _s4(); } return { setters: [function (_appDecoratorsSrcLibsElementToFunction) { _elementToFunc = _appDecoratorsSrcLibsElementToFunction.default; }], execute: function () { _export('guid', guid); } }; }); //# sourceMappingURL=guid.js.map