This repository has been archived on 2026-03-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw-extensions/wecom/node_modules/node-llama-cpp/dist/utils/removeNullFields.js
T

17 lines
463 B
JavaScript

export function removeNullFields(obj) {
const newObj = Object.assign({}, obj);
for (const key in obj) {
if (newObj[key] == null)
delete newObj[key];
}
return newObj;
}
export function removeUndefinedFields(obj) {
const newObj = Object.assign({}, obj);
for (const key in obj) {
if (newObj[key] === undefined)
delete newObj[key];
}
return newObj;
}
//# sourceMappingURL=removeNullFields.js.map