1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = omit;
|
7 | function omit(obj, fields) {
|
8 | var clone = Object.assign({}, obj);
|
9 | if (Array.isArray(fields)) {
|
10 | fields.forEach(function (key) {
|
11 | delete clone[key];
|
12 | });
|
13 | }
|
14 | return clone;
|
15 | } |
\ | No newline at end of file |