docs(aio): fix TS warning error - filter expects a boolean function param (#22954)

PR Close #22954
This commit is contained in:
Alberto Piras 2018-03-23 15:27:16 +01:00 committed by Matias Niemelä
parent 3a30f5d937
commit 16f021c319
1 changed files with 1 additions and 1 deletions

View File

@ -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)
);