'use strict'; function pick(object, keysToPick) { const result = {}; for (const key of keysToPick) { if (key in object) { result[key] = object[key]; } } return result; } exports.pick = pick;