/**
 * Nunjucks filter to get the page for a given path
 * @param {Record<string, any>} targetDictionary - Object to extend
 * @param {Record<string, any> | string} sourceDictionary - Object to merge into target
 * @returns {Record<string, any>}
 */
export function merge(targetDictionary, sourceDictionary) {
  if (typeof sourceDictionary !== 'object') {
    return targetDictionary;
  }
  return {
    ...targetDictionary,
    ...sourceDictionary
  };
}
//# sourceMappingURL=merge.js.map