UNPKG

@scalar/api-client

Version:

the open source API testing client

8 lines (7 loc) 169 B
const o = (t) => { const n = t.some((e) => Object.keys(e).length > 1); return t.some((e) => Object.keys(e).length === 0) && !n; }; export { o as isAuthOptional };