Is it possible to conditionally pass a property into an object-based function:
myFunction
.x()
.y()
.x();
Here, I'd like to only pass in y() based on a condition, something like:
myFunction
.x()
[isTrue && y()]
.x();
Any help much appreciated, thanks