@alexkeating/common-utilities
Version:
Our **Common Utilities** package is a set of helper tools and utilities that are used throughout our libraries and apps. This includes things like our constants, types that are commonly shared across packages, and various utilities and helper functions.
11 lines • 364 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.omit = void 0;
// Temp until we have a more TS friendly way of doing this
const omit = (obj, fields) => {
const newObj = Object.assign({}, obj);
fields.forEach((field) => delete newObj[field]);
return newObj;
};
exports.omit = omit;
//# sourceMappingURL=object.js.map