import { wrap, map, filter } from '@connectv/core'; import { fromEvent } from 'rxjs'; let a = document.getElementById('a') as HTMLInputElement; let p = document.getElementById('p'); // // Will say hello to everyone but 'Donald'. // For obvious reasons. // wrap(fromEvent(a, 'input')) // --> wrap the `Observable` in a `Pin` .to(map(() => a.value)) // --> map the event to value of the input .to(filte