discourse/app/assets/javascripts/ember-addons/utils/extract-value.js
2020-03-24 16:11:56 -04:00

6 lines
144 B
JavaScript

export default function extractValue(desc) {
return (
desc.value || (typeof desc.initializer === "function" && desc.initializer())
);
}