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 49f6d1d02e
commit 8d1e64004b

View File

@ -8,7 +8,7 @@ import { map } from 'rxjs/operators/map';
const squareOdd = Observable.of(1, 2, 3, 4, 5)
.pipe(
filter(n => n % 2),
filter(n => n % 2 !== 0),
map(n => n * n)
);