Skip to content

Commit dcace24

Browse files
committed
update README.md
1 parent fa8b3b8 commit dcace24

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@ based on some key
1313

1414
`const sub = new SnapShotReplaySubject<any>((value) => {return value.key});`
1515

16-
`sub.next({key:'IBM', bid:100, ask:101});
17-
sub.next({key:'IBM', bid:102, ask:104});
18-
sub.subscribe((val) => {
16+
`sub.next({key:'IBM', bid:100, ask:101});`
17+
18+
`sub.next({key:'IBM', bid:102, ask:104});`
19+
20+
`sub.subscribe((val) => {
1921
console.log(value);
2022
} );
2123
}
2224
`
25+
2326
will display only
2427

2528
`{key:'IBM', bid:102, ask:104}`

0 commit comments

Comments
 (0)