For the complete documentation index, see llms.txt. This page is also available as Markdown.

elementAt

elementAt

只发出 Observable 中的第 n 个元素

elementAt 操作符将拉取 Observable 序列中指定索引数的元素,然后将它作为唯一的元素发出。

演示

输出结果:

Last updated

Was this helpful?