mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 14:55:02 +00:00
12 lines
227 B
JavaScript
12 lines
227 B
JavaScript
export default function(model, props, attr = {}) {
|
|
model.eachAttribute(function(item) {
|
|
attr[item] = {
|
|
...attr[item],
|
|
...{
|
|
serialize: props.indexOf(item) !== -1,
|
|
},
|
|
};
|
|
});
|
|
return attr;
|
|
}
|