UNPKG

@logic-pad/core

Version:
15 lines (14 loc) 589 B
import Symbol from './symbol.js'; export default class MultiEntrySymbol extends Symbol { /** * Determines if the description of two MultiEntrySymbols can be merged when displayed in the UI. * @param other - The other MultiEntrySymbol to compare to. * @returns Whether the two MultiEntrySymbols have the same description. */ descriptionEquals(other) { return (this.id === other.id && this.explanation === other.explanation && this.createExampleGrid().equals(other.createExampleGrid())); } } export const instance = undefined;