1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | /**
|
4 | *
|
5 | * Remove particular key from the object.
|
6 | *
|
7 | * @param k
|
8 | * @param obj
|
9 | */
|
10 | function removeKey(k, obj) {
|
11 | return Object.keys(obj).reduce((acc, key) => {
|
12 | if (key === k)
|
13 | return acc;
|
14 | return Object.assign({}, acc, { [key]: obj[key] });
|
15 | }, {});
|
16 | }
|
17 | exports.removeKey = removeKey;
|
18 | //# sourceMappingURL=utils.js.map |
\ | No newline at end of file |