github.com/outbrain/consul@v1.4.5/ui-v2/app/utils/dom/normalize-event.js (about)

     1  export default function(e, value, target = {}) {
     2    if (typeof e.target !== 'undefined') {
     3      return e;
     4    }
     5    return {
     6      target: { ...target, ...{ name: e, value: value } },
     7    };
     8  }