consul/ui-v2/app/utils/dom/normalize-event.js

9 lines
183 B
JavaScript
Raw Normal View History

export default function(e, value, target = {}) {
if (typeof e.target !== 'undefined') {
return e;
}
return {
target: { ...target, ...{ name: e, value: value } },
};
}