Difference between arrayContains() vs listContains()?
Hello everyone, I'm wondering if anyone can tell me pros/cons of either of these two functions? Which one is preferred and if there is any difference in performance/security, etc? I used arrayContains() thinking it's better/faster for validations some fields on the back end as well as reducing number of lines in situations like this:
<cfif userAccess eq 1>
<!--- Do something --->
</cfif>
<cfif userAccess eq 4>
<!--- Do something --->
</cfif>
Instead I used this:
<cfif arrayContains([1,4],userAccess)>
<!--- Do something --->
</cfif>
Would listFind() or listContains() be better fit in this case or not? Please if anyone have information about the differences let me know. Thank you.
