9 lines
178 B
JavaScript
9 lines
178 B
JavaScript
|
export function pick(obj, keys) {
|
||
|
const newObj = {};
|
||
|
for (const key of keys){
|
||
|
newObj[key] = obj[key];
|
||
|
}
|
||
|
return newObj;
|
||
|
}
|
||
|
|
||
|
//# sourceMappingURL=pick.js.map
|