Skip to main content

array_index

Function array_index 

Source
pub fn array_index(key: &str) -> Option<u32>
Expand description

The array index a property key names, if it names one.

A key is an index when it is the canonical decimal spelling of an integer below 2^32 - 1 — the same rule the atom table uses to decide whether a key is a tagged index. "01" and "-1" are ordinary string keys.