RxJS. Delay from array
import { of, from } from 'rxjs';
import { map, concatMap, delay } from 'rxjs/operators';
from([2,4,6,8]).pipe(
concatMap(item => of(item).pipe(delay(1000)))
).subscribe(console.log); Stackblitz (in console):
import { of, from } from 'rxjs';
import { map, concatMap, delay } from 'rxjs/operators';
from([2,4,6,8]).pipe(
concatMap(item => of(item).pipe(delay(1000)))
).subscribe(console.log); Stackblitz (in console):
Функции обратного вызова, обещания, async/await
Немного поясненительных примеров о Pick и Record
jasmine createspy object with properties
const m = [1,'2',3];
m.toString();
String(m); // <===
"1,2,3" Add dist folder of dependency libs to main tsconfig.json and run command
nx run need:build --with-deps