Skip to content

My implementation of RxJS Subject

Notifications You must be signed in to change notification settings

piecioshka/my-subject

Repository files navigation

my-subject

My implementation of RxJS Subject. I used TDD to create this project.

Video Tutorial (PL 🇵🇱)

Features

  • ✅ Making a subscription
  • ✅ Pushing a value to all subscriptions

Usage

const sub = new Subject();
sub.subscribe({
  next(value) {
    console.log(value)
  },
});
sub.next(1); // 1
sub.next('cookie'); // "cookie"

Unit tests

npm test

License

The MIT License @ 2020

About

My implementation of RxJS Subject

Topics

Resources

Stars

Watchers

Forks