Skip to main content

arr_from_index

Function arr_from_index 

Source
pub(crate) fn arr_from_index(a: &[Value], len: usize) -> usize
Expand description

fromIndex(第2引数)を正規化する。負の値は末尾からのオフセット、範囲外は len(=以降の探索が即座に空になる)に丸める(indexOf/includes 共通)。