@stringsync/vexml
Version:
MusicXML to Vexflow
13 lines (12 loc) • 377 B
JavaScript
/** An enumeration of string values. */
export class Enum {
values;
constructor(values) {
this.values = values;
}
/** Type predicate that returns whether or not the value is one of the choices. */
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
includes(value) {
return this.values.includes(value);
}
}