Demo:  empty

The EMPTY emits no item and immediately emits a complete notification.

//emit no item and immediately emits a complete notification.
let input = EMPTY;

//as the input completes with no item,
//defaultIfEmpty fires the default value
let process = defaultIfEmpty(10);

let output = input.pipe(process).subscribe(v=>console.log(v))