discourse/app/assets/javascripts/ember-addons/utils/extract-value.js.es6
2015-08-13 11:14:16 -04:00

4 lines
138 B
JavaScript

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