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 characters
import { of } from 'rxjs'; | |
import { concatMap, delay, mergeMap, switchMap } from 'rxjs/operators'; | |
const source = of(2000, 1000); | |
source | |
.pipe(concatMap(val => of(`Delayed by: ${val}ms`).pipe(delay(val)))) | |
.subscribe(val => console.log(`With concatMap: ${val}`)); | |
source |
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 characters
export function isEmpty(obj) { | |
if (typeof obj === 'string' || obj === '') { | |
return false; | |
} | |
if (typeof obj === 'number' || obj === 0) { | |
return false; | |
} | |
if (typeof obj === 'boolean') { | |
return false; | |
} |
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 characters
.sk-cube-grid .sk-cube { | |
width: 33%; | |
height: 33%; | |
background-color: #FFFFFF; | |
float: left; | |
-webkit-animation: sk-cubeGridScaleDelay 1.3s infinite ease-in-out; | |
animation: sk-cubeGridScaleDelay 3s infinite cubic-bezier(1, 1, 1, 0.2); | |
} |