Last active
January 9, 2019 00:14
Revisions
-
jsonberry revised this gist
Jan 9, 2019 . 1 changed file with 0 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +0,0 @@ -
jsonberry revised this gist
Jan 9, 2019 . 2 changed files with 14 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ import { from } from 'rxjs'; import { someApiService } from './some-api.service'; from([ 'I', false, 'am', null, 'truthy', ]).pipe( ignoreFalsyValues(), ).subscribe(signal => console.log(signal)); // "I", "am", "truthy" This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,6 +2,6 @@ import { of } from 'rxjs'; import { tapLog } from 'rxjs-toolkit'; of('hello').pipe( tapLog(), // log out whatever the signal is, so "hello" tapLog('labelFoo') // give it a label, { labelFoo: "hello" } ).subscribe() -
jsonberry renamed this gist
Jan 9, 2019 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
jsonberry created this gist
Jan 9, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ import { of } from 'rxjs'; import { tapLog } from 'rxjs-toolkit'; of('hello').pipe( tapLog(), // log out whatever the signal is, so 'hello' tapLog('labelFoo') // give it a label, { labelFoo: 'hello' } ).subscribe()