mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
16 lines
364 B
JavaScript
16 lines
364 B
JavaScript
function getDescription(option, parentGroup) {
|
|
return [
|
|
parentGroup && parentGroup.label,
|
|
option.__labelPrefix,
|
|
]
|
|
.concat(option.tags)
|
|
}
|
|
|
|
function printDescription() {
|
|
const option = {__labelPrefix: 'test', tags: []};
|
|
const parent = null
|
|
const desc = getDescription(option, parent);
|
|
console.log(desc);
|
|
}
|
|
|
|
printDescription(); |