Skip to main content

index

Function index 

Source
pub fn index(out: &mut CodeValue, arr: &CodeValue, i: &CodeValue)
Expand description

arr[index] element access, with the same totality as field: an out-of-bounds index, a non-Number index into an Array, a non-String key into an Object, or an arr that is neither, all write Null.

Matches .code’s own rules for everything except that last case, for the reason field gives.