amis-rpc-design/node_modules/ansi-fragments/build/fragments/utils.js
2023-10-07 19:42:30 +08:00

13 lines
406 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function buildChildren(children) {
return children
.map((child) => typeof child === 'string' ? child : child.build())
.join('');
}
exports.buildChildren = buildChildren;
function toArray(value) {
return Array.isArray(value) ? value : [value];
}
exports.toArray = toArray;
//# sourceMappingURL=utils.js.map