I am using a trigger call a get a value from custom event but I want it to return a value and its only giving me Object Object when I do the following call:
triggerHandler is the correct answer, but it's worth noted as I have not seen it here yet...
You can pass another callback along as well, and have your "on" function call the passed callback to set some return value etc. assuming it's better not to wait for some reason.