Programming, Computer Science, JavaScript, Functional Programming.
export class Empty implements NumberSetI { add(n: number) { /* ??? */ } isEmpty() { return true; } has(n: number) { return false; } union(set: NumberSetI) { return set; } } The implementation of most of these methods is obvious. An empty set always returns true when asked if it is empty, and false