F

Fox Root • 195 Points
Mover

Q. Which RxJS operator collects all emitted values into a single array when the source completes?

  • (A) scan()
  • (B) toArray()
  • (C) reduce()
  • (D) buffer()
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category RxJS
  • Hashtags:

Explanation by: Fox Root
toArray() gathers all emissions and outputs them as an array after completion.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.