(subscriber:IndexSubscriber<T>)
| 15 | constructor() {} |
| 16 | |
| 17 | subscribe(subscriber:IndexSubscriber<T>) { |
| 18 | if(this.subscribers.indexOf(subscriber) === -1) { |
| 19 | this.subscribers.push(subscriber); |
| 20 | return true; |
| 21 | } |
| 22 | return false; |
| 23 | } |
| 24 | |
| 25 | unsubscribe(subscriber:IndexSubscriber<T>) { |
| 26 | let ix = this.subscribers.indexOf(subscriber); |
no outgoing calls
no test coverage detected