UNPKG

@scalar/api-client

Version:

the open source API testing client

5 lines (4 loc) 184 B
const f = (n, s) => JSON.stringify(s) === "[{}]" && n?.length ? !!n.find((t) => JSON.stringify(t) === "{}") ? n : [...n, {}] : s ?? n ?? []; export { f as getSecurityRequirements };