From 16f021c319912e7a7e7dedf24c1897ef4bc9bc09 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 4c8ccf37b7..9559ea8525 100644 --- a/aio/content/examples/rx-library/src/operators.2.ts +++ b/aio/content/examples/rx-library/src/operators.2.ts @@ -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) );