1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/** Encode a SummaryArticle to JSON @param {GlossaryEntry} @return {Object} */ function encodeGlossaryEntry(entry) { return { id: entry.getID(), name: entry.getName(), description: entry.getDescription() }; } module.exports = encodeGlossaryEntry;