startWith: 在开头添加要发送的元素
startWith(an: Values): Observable
filter: 传入function 过滤发送的元素
take: 传入数字,只取...N个数的元素
skip: 传入数字,跳过N个元素
last: 取最后一个元素
first: 取最后一个元素
const { from } = rxjs;
const { filter, take, last, startWith...from([1, 2, 3, 4, 5]);
const example = source.pipe(
// 开头追加 6, 8 得 6, 8, 1, 2, 3, 4, 5
startWith