UNPKG

424 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 *
5 * Remove particular key from the object.
6 *
7 * @param k
8 * @param obj
9 */
10function 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}
17exports.removeKey = removeKey;
18//# sourceMappingURL=utils.js.map
\No newline at end of file