From 8d1e64004b32a422a060626abff676ee94bc4ad6 Mon Sep 17 00:00:00 2001 From: Alberto Piras Date: Fri, 23 Mar 2018 15:27:16 +0100 Subject: [PATCH] docs(aio): fix TS warning error - filter expects a boolean function param (#22954) PR Close #22954 --- aio/content/examples/rx-library/src/operators.2.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/examples/rx-library/src/operators.2.ts b/aio/content/examples/rx-library/src/operators.2.ts index 4e38c8eb6d..a24c2d6338 100644 --- a/aio/content/examples/rx-library/src/operators.2.ts +++ b/aio/content/examples/rx-library/src/operators.2.ts @@ -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) );