Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@tanepiper
Created November 24, 2020 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanepiper/0268800854b51832e3c1c0c6c3aef62c to your computer and use it in GitHub Desktop.
Save tanepiper/0268800854b51832e3c1c0c6c3aef62c to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>UMD RxJS Ninja</title>
</head>
<body></body>
<script src="https://unpkg.com/rxjs/bundles/rxjs.umd.min.js"></script>
<script>
window.operators = rxjs.operators;
</script>
<script src="https://unpkg.com/@rxjs-ninja/rxjs-random@1.1.1/rxjs-random.umd.js"></script>
<script module>
const { tap } = rxjs.operators;
const { fromRandom } = RxjsRandom;
fromRandom(0, 1, 1000).pipe(tap(console.log)).subscribe()
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment