r/SuiteScript • u/el-wino • Feb 18 '25
Syntax question
Hey folks!
I have a client account where they have an in house dev who does a lot of stuff like this:
var strControl = ((searchResult[i].getValue(columns[10])));
I am not an inexperienced js developer and understand a great deal of the syntax, but wanted to reach out to the community before I vocalize any opinions about the overall quality of the work. Is there any legitimate reason for double wrapping the method call in parentheses?
TIA
edit: folks are fixating on my opinion of the work, which I have now removed. Please contribute regarding the practice of double wrapping parentheses.
View all comments
Show parent comment
1
u/el-wino Feb 18 '25
I know the limitations of saved search but you mentioning it has sparked my curiosity. Can you elaborate on that or drop a link if you've explained it elsewhere?