utils.js 406 B

12345678910111213
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function buildChildren(children) {
  4. return children
  5. .map((child) => typeof child === 'string' ? child : child.build())
  6. .join('');
  7. }
  8. exports.buildChildren = buildChildren;
  9. function toArray(value) {
  10. return Array.isArray(value) ? value : [value];
  11. }
  12. exports.toArray = toArray;
  13. //# sourceMappingURL=utils.js.map