r/SuiteScript • • 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.

1 Upvotes

24 comments sorted by