jbilcke-hf's picture
jbilcke-hf HF Staff
Upload folder using huggingface_hub
60e3020 verified
raw
history blame contribute delete
361 Bytes
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
}