This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
2025-01-11 09:54:09 +03:00

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