'ListFind' client and server action
381
Views
2
Comments
New
Builtin & User functions

90% of the times I use the 'ListIndexOf' function I follow it up with some variation of:

MyVar = MyList[ListIndexOf.Position].val

It would be helpful if there was a 'ListFind' function (client and server) that returns the element in that position, and not only the index.

ListFilter will do that for you

Somewhat. ListFilter returns a list, not a single element. 

It is also not efficient because it must loop through the entire list, instead of stopping at the first match