UNPKG

@graphql-inspector/action

Version:

GraphQL Inspector functionality for GitHub Actions

7 lines (6 loc) 207 B
export function findChangesByPath(changes, path) { return changes.filter(c => c.path === path); } export function findFirstChangeByPath(changes, path) { return findChangesByPath(changes, path)[0]; }