11 lines
250 B
Plaintext
11 lines
250 B
Plaintext
export function omit(object, keys) {
|
|
const omitted = {};
|
|
Object.keys(object).forEach((key)=>{
|
|
if (!keys.includes(key)) {
|
|
omitted[key] = object[key];
|
|
}
|
|
});
|
|
return omitted;
|
|
}
|
|
|
|
//# sourceMappingURL=omit.js.map |