Closed 6pac closed 7 months ago
(bool ? obj.f1 : obj.f2)(params) is an antipattern as obj is not passed as this to the function
(bool ? obj.f1 : obj.f2)(params)
obj
this
(bool ? obj.f1 : obj.f2)(params)
is an antipattern asobj
is not passed asthis
to the function