discourse/app/assets/javascripts/ember-addons/utils/extract-value.js.es6

5 lines
138 B
Text
Raw Normal View History

2015-08-11 17:34:02 -04:00
export default function extractValue(desc) {
return desc.value ||
(typeof desc.initializer === 'function' && desc.initializer());
}