this is my code here:
handleKeyUpOnNewRecipient : function(component, event, helper, recipient){
component.set("v.recipients", _.unionBy(component.get("v.recipients"), [recipient], 'id'));
component.set("v.inputKeyword", '');
},
Call of this function from controller:
doInit : function(component, event, helper) {
component.set("v.searchEmail", {
onValueChange: helper.handleKeyUpOnNewRecipient,
lookupAPI: component.get("c.searchEmail"),
component: component, event: event, helper: helper
})
},
I don't understand what the fourth 'recipient' is that we are passing to handleKeyUpOnNewRecipient
which is a method in helper class. Could anyone tell me?