How to use the @ts-common/iterator.filterMap function in @ts-common/iterator

To help you get started, we’ve selected a few @ts-common/iterator examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / oav / lib / util / processErrors.ts View on Github external
export const processErrors = >(errors: T[] | undefined) =>
  errors === undefined ? undefined : Array.from(filterMap(errors, one))