vaultmd / isFlatFrontmatter
Function: isFlatFrontmatter()
isFlatFrontmatter(
fm):boolean
Defined in: src/frontmatter/validate.ts:41
Return true when every value in fm is a scalar (string, a finite number, boolean, or null) or an array of such scalars. Nested objects, nested arrays, Dates, and non-finite numbers (NaN, Infinity) all disqualify the frontmatter as non-flat — those values cannot survive a serialize/parse round-trip through the YAML core schema.
Parameters
fm
Record<string, unknown>
Frontmatter map to validate.
Returns
boolean
true if all values are flat-scalar-safe; false otherwise.