UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

14 lines (11 loc) 367 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** Generates randomID, does not support SSR */ var randomId = function randomId(name) { return "".concat(name + Math.floor(Math.random() * 100000), "-id-").concat(Math.floor(Math.random() * 100000)); }; var _default = randomId; exports.default = _default;