19 lines
368 B
JavaScript
19 lines
368 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "pick", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return pick;
|
|
}
|
|
});
|
|
function pick(obj, keys) {
|
|
const newObj = {};
|
|
for (const key of keys){
|
|
newObj[key] = obj[key];
|
|
}
|
|
return newObj;
|
|
}
|
|
|
|
//# sourceMappingURL=pick.js.map
|