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