mirror of https://github.com/jkjoy/sunpeiwen.git
12 lines
338 B
JavaScript
12 lines
338 B
JavaScript
"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;
|