mirror of https://github.com/hashicorp/consul
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 } },
|
||
|
};
|
||
|
}
|