You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
parttimejob/node_modules/ali-oss/lib/common/utils/omit.js

12 lines
327 B

1 month ago
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.omit = void 0;
function omit(originalObject, keysToOmit) {
const cloneObject = Object.assign({}, originalObject);
for (const path of keysToOmit) {
delete cloneObject[path];
}
return cloneObject;
}
exports.omit = omit;