Lifts an arbitrary value of any type into an Observable of that type which will publish immediately exactly one time.
Optional
const simple = pure(4);simple.subscribe((n: number) => void console.log(`simple value: ${n}`)); Copy
const simple = pure(4);simple.subscribe((n: number) => void console.log(`simple value: ${n}`));
# printssimple value: 4 Copy
# printssimple value: 4
Generated using TypeDoc
Lifts an arbitrary value of any type into an Observable of that type which will publish immediately exactly one time.