source: node_modules/minim/lib/KeyValuePair.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 455 bytes
Line 
1/**
2 * @class
3 *
4 * @property {Element} key
5 * @property {Element} value
6 */
7class KeyValuePair {
8 constructor(key, value) {
9 this.key = key;
10 this.value = value;
11 }
12
13 /**
14 * @returns {KeyValuePair}
15 */
16 clone() {
17 const clone = new KeyValuePair();
18
19 if (this.key) {
20 clone.key = this.key.clone();
21 }
22
23 if (this.value) {
24 clone.value = this.value.clone();
25 }
26
27 return clone;
28 }
29}
30
31module.exports = KeyValuePair;
Note: See TracBrowser for help on using the repository browser.