Files
railwaysystem/RuoYi-Vue/ruoyi-ui/node_modules2/@antv/util/esm/pick.js
T

16 lines
461 B
JavaScript
Raw Normal View History

2026-09-10 15:40:10 +08:00
import each from './each';
import isPlainObject from './is-plain-object';
var hasOwnProperty = Object.prototype.hasOwnProperty;
export default (function (object, keys) {
if (object === null || !isPlainObject(object)) {
return {};
}
var result = {};
each(keys, function (key) {
if (hasOwnProperty.call(object, key)) {
result[key] = object[key];
}
});
return result;
});
//# sourceMappingURL=pick.js.map