UNPKG

cosmo-ui

Version:
21 lines 620 B
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./event-utils")); __export(require("./random")); /** * Replace camelCase with dashed-space * * @export * @param {string} str * @returns {string} */ exports.dasherize = function (str) { return str.replace(/([A-Z])/g, function (g) { return "-" + g[0].toLowerCase(); }); }; exports.flatten = function (arr) { return arr.reduce(function (acc, itm) { return acc.concat(itm); }, []); }; //# sourceMappingURL=index.js.map