UNPKG

graplix

Version:

Authorization framework for implementing Relation-based Access Control (ReBAC) with the Resolver (Inspired by [GraphQL](https://graphql.org))

4 lines (3 loc) 131 B
export function filterNonError<T>(arr: (T | Error)[]): T[] { return arr.filter((item): item is T => !(item instanceof Error)); }