UNPKG

sanity

Version:

Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches

7 lines (6 loc) 316 B
/** * When encoding the current studio perspective it's necessary to deal with it sometimes being an array, in a consistent way. */ export function encodeStudioPerspective(studioPerspective: string[] | string): string { return Array.isArray(studioPerspective) ? studioPerspective.join(',') : studioPerspective }