private.mjs 396 B

123456789101112131415
  1. import { isObservable, of } from 'rxjs';
  2. /**
  3. * Given either an Observable or non-Observable value, returns either the original
  4. * Observable, or wraps it in an Observable that emits the non-Observable value.
  5. */
  6. function coerceObservable(data) {
  7. if (!isObservable(data)) {
  8. return of(data);
  9. }
  10. return data;
  11. }
  12. export { coerceObservable };
  13. //# sourceMappingURL=private.mjs.map