Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.switchMap(items => {
return Observable.forkJoin(items.map(item => {
const memberType = referenceType.to.find(ofType => ofType.type.name === item._type)
return observeForPreview(item, memberType)
.map(result => result.snapshot)
.first()
}))
})
}