astro-ghostcms/.pnpm-store/v3/files/40/6fc4b48076bc38f451acd6a5788...

18 lines
361 B
Plaintext

export function defaults(target, ...sources) {
for (let source of sources) {
for (let k in source) {
if (!target?.hasOwnProperty?.(k)) {
target[k] = source[k]
}
}
for (let k of Object.getOwnPropertySymbols(source)) {
if (!target?.hasOwnProperty?.(k)) {
target[k] = source[k]
}
}
}
return target
}