bootstrap-vue
Version:
BootstrapVue, with over 40 plugins and more than 75 custom components, provides one of the most comprehensive implementations of Bootstrap v4 components and grid system for Vue.js. With extensive and automated WAI-ARIA accessibility markup.
21 lines (16 loc) • 539 B
JavaScript
;
exports.__esModule = true;
exports.default = sanitizeRow;
var _object = require("../../../utils/object");
var _constants = require("./constants");
// Return a copy of a row after all reserved fields have been filtered out
// TODO: add option to specify which fields to include
function sanitizeRow(row) {
return (0, _object.keys)(row).reduce(function (obj, key) {
// Ignore special fields that start with _
if (!_constants.IGNORED_FIELD_KEYS[key]) {
obj[key] = row[key];
}
return obj;
}, {});
}