keysOf()

by Ricardo “Rudxain” Fernández Serrata

Version 1 (June 19, 2021)

Download (58 downloads)

Returns an array (named key_array) of ALL indices/keys (supports dictionaries) where value is found in ANY type of container.

If value is not found, returns null. I was considering that it would be more consistent to return an empty array, but null is more efficient in many ways.

For better performance and correctness, this uses indexOf() as a "base", instead of a custom implementation.

4.0 average rating from 1 reviews

5 stars
0
4 stars
1
3 stars
0
2 stars
0
1 star
0
Reports
0

Rate and review within the app in the Community section.