My implementation of RxJS Subject
. I used TDD to create this project.
- ✅ Making a subscription
- ✅ Pushing a value to all subscriptions
const sub = new Subject();
sub.subscribe({
next(value) {
console.log(value)
},
});
sub.next(1); // 1
sub.next('cookie'); // "cookie"
npm test
The MIT License @ 2020