Skip to main content

index

Function index 

Source
pub fn index<S: ValueStore>(
    store: &S,
    object: Value,
    index: Value,
) -> RuntimeResult<Value>
Expand description

Array out-of-bounds and hash missing key are null; wrong container or index types are TypeError; unhashable hash keys are InvalidHashKey (design §10.1).