UNPKG

@scalar/api-client

Version:

the open source API testing client

5 lines (4 loc) 157 B
const i = (n, t) => n?.length ? t === void 0 ? n[0] : t === "" ? null : n.find(({ url: u }) => u === t) ?? null : null; export { i as getSelectedServer };