79488504

Date: 2025-03-06 07:06:44
Score: 0.5
Natty:
Report link

instead of concatMap, i'd suggest instead concat. combine concat with toArray

syntax as follow:

const arrOfObservable = elementsList.map(elem => this.simpleFunc(elem))
concat(...arrOfObservable).pipe(toArray()).subscribe()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: aii-yin