Is there a better approach to:
$(obj1).add(obj2).add(obj3).add(obj4)... etc?
I’m working on a script that has many user-optional components, and sometimes I’m needing to grab many of these. I’m just wondering if there’s a better way to do this, or if there’s a way to pass in multiple objects into 1 .add? Also would it be worth it (e.g. if it involves building an array of objects then passing that in???)
Thanks!
You can use an array of the objects: