UNPKG

epubavocado

Version:

I am an EPUB object model aspiring to be standards compliant.

12 lines (11 loc) 323 B
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types export function Value(Base) { return class Value extends Base { value() { const textNode = this._select('./text()'); if (textNode) { return textNode.nodeValue; } } }; }