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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
144 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())
);
}