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

Failed to ignore revisions in .git-blame-ignore-revs.

6 lines
144 B
JavaScript
Raw Normal View History

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