I am new to RxJS and have a doubt.
Below code works fine and prints 'Robert" and 'Mark'
let studentNames = ['Robert','Mark','Sam'];
from(studentNames).pipe(take(2)).subscribe(
data =>
{
console.log(data);
});
But when I added debounceTime it only prints 'Mark'. Why is this?
let studentNames = ['Robert','Mark','Sam'];
from(studentNames).pipe(take(2),debounceTime(1000)).subscribe(
data =>
{
console.log(data);
});