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

6 lines
144 B
Plaintext
Raw Normal View History

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