UNPKG

@scalar/api-client

Version:

the open source API testing client

15 lines (14 loc) 383 B
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref"; const m = (a = [], r = []) => { const o = r.flatMap((t) => { const e = n(t); return e ? `${e.in}:${e.name}` : []; }), s = new Set(o); return [...a.filter((t) => { const e = n(t); return e ? !s.has(`${e.in}:${e.name}`) : !1; }), ...r]; }; export { m as combineParams };