@kiwicom/smart-faq
Version:
27 lines (21 loc) • 601 B
JavaScript
require("core-js/modules/es.array.join");
require("core-js/modules/es.string.match");
require("core-js/modules/es.string.split");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// @flow
var formatBookingId = function formatBookingId(bookingDatabaseId
/*: number | string*/
)
/*: string*/
{
var splitBookingId
/*: string[]*/
= String(bookingDatabaseId).split('').reverse().join('').match(/.{1,3}/g) || [];
return splitBookingId.join(' ').split('').reverse().join('');
};
var _default = formatBookingId;
exports.default = _default;
;