@segment/analytics-core
Version:
This package represents core 'shared' functionality that is shared by analytics packages. This is not designed to be used directly, but internal to analytics-node and analytics-browser.
10 lines • 363 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.pickBy = void 0;
var pickBy = function (obj, fn) {
return Object.keys(obj)
.filter(function (k) { return fn(k, obj[k]); })
.reduce(function (acc, key) { return ((acc[key] = obj[key]), acc); }, {});
};
exports.pickBy = pickBy;
//# sourceMappingURL=pick.js.map