mirror of https://github.com/status-im/consul.git
9 lines
183 B
JavaScript
9 lines
183 B
JavaScript
|
export default function(e, value, target = {}) {
|
||
|
if (typeof e.target !== 'undefined') {
|
||
|
return e;
|
||
|
}
|
||
|
return {
|
||
|
target: { ...target, ...{ name: e, value: value } },
|
||
|
};
|
||
|
}
|