docs(aio): fix TS warning error - filter expects a boolean function param (#22954)
PR Close #22954
This commit is contained in:
parent
49f6d1d02e
commit
8d1e64004b
@ -8,7 +8,7 @@ import { map } from 'rxjs/operators/map';
|
|||||||
|
|
||||||
const squareOdd = Observable.of(1, 2, 3, 4, 5)
|
const squareOdd = Observable.of(1, 2, 3, 4, 5)
|
||||||
.pipe(
|
.pipe(
|
||||||
filter(n => n % 2),
|
filter(n => n % 2 !== 0),
|
||||||
map(n => n * n)
|
map(n => n * n)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user