UNPKG

@dossierhq/core

Version:

The core Dossier library used by clients and server alike, used to interact with schema and entities directly, as well as remotely through a client.

19 lines 491 B
/// <reference types="./ContentPath.d.ts" /> export function contentValuePathToString(path) { let result = ''; for (const segment of path) { if (Number.isInteger(segment)) { result += `[${segment}]`; } else { if (result.length === 0) { result += segment; } else { result += `.${segment}`; } } } return result; } //# sourceMappingURL=ContentPath.js.map