You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you are passing a[0] as parameter, It gets evaluated at runtime even though the condition is false. One fix is to not use ternary operator and directly use if { } else { } or you can use lo.TernaryF like this,
Test code
https://go.dev/play/p/LIx60Wu_tT9
As expected it should work.
The text was updated successfully, but these errors were encountered: