UNPKG

graplix

Version:

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

7 lines (5 loc) 157 B
export function isEqual<T>(identify: (t: T) => string, a: T, b: T): boolean { const aid = identify(a); const bid = identify(b); return aid === bid; }