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.
12 lines
327 B
12 lines
327 B
"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;
|