@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
32 lines (30 loc) • 557 B
JavaScript
/**
* @template Key, Value
*/
export class KeyValuePair {
/**
* @param {Key} key
* @param {Value} value
*/
constructor(key, value) {
/**
*
* @type {Key}
*/
this.key = key;
/**
*
* @type {Value}
*/
this.value = value;
}
/**
*
* @param {KeyValuePair} other
* @return {boolean}
*/
equals(other){
return this.key === other.key
&& this.value === other.value;
}
}