UNPKG

gatsby-source-prismic

Version:

Gatsby source plugin for building websites using Prismic as a data source

9 lines (8 loc) 229 B
/** * Converts a list of path edges to a string joined by dots ("`.`"). * * @param path - List of path edges. * * @returns Paths joined by dots ("`.`"). */ export const dotPath = (path: string[]): string => path.join(".");