Befor generating

This commit is contained in:
marys
2026-06-01 13:17:37 +02:00
parent 3383f4bf4a
commit 1aa1b5f625
6756 changed files with 649946 additions and 1 deletions
@@ -0,0 +1,23 @@
const { getMapValueByKey } = require('../models/utils');
/**
* Implements functions to deal with the description field.
* @mixin
*/
const MixinDescription = {
/**
* @returns {boolean}
*/
hasDescription() {
return !!this._json.description;
},
/**
* @returns {(string | null)}
*/
description() {
return getMapValueByKey(this._json, 'description');
},
};
module.exports = MixinDescription;