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

5 lines
138 B
Plaintext
Raw Normal View History

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