this is really simple but I don't know where to find documentation for Lightning specific javascript, can someone help out? I want to know what that second boolean argument to .get() is for in the context of using a javascript controller for lightning.

 packItem : function(component, event, helper) {
    var itm = component.get("v.item",true);
  • I think you have confused get with set: component.set("v.item",true); should set the item attribute with a true value. var item = component.get("v.item"); would get the value of the item attribute, so second param is handeled Commented Nov 29, 2017 at 7:48

1 Answer 1


As of ow, as per documentation there is no such Boolean second parameter in Component.get()

I think it may continue to work without failing until Salesforce enhances the functionality to use a second parameter.

I noted few posts being going around other forums too.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .