/** * @class * * @property {Element} key * @property {Element} value */ class KeyValuePair { constructor(key, value) { this.key = key; this.value = value; } /** * @returns {KeyValuePair} */ clone() { const clone = new KeyValuePair(); if (this.key) { clone.key = this.key.clone(); } if (this.value) { clone.value = this.value.clone(); } return clone; } } module.exports = KeyValuePair;