Skip to main content

array_extra_entries

Function array_extra_entries 

Source
fn array_extra_entries(b: &Obj) -> Vec<(String, Value)>
Expand description

配列の、添字以外の列挙できる自身のプロパティ(match の結果の index・input・groups など)。 内部用の印(_ で始まる名前)・length・記号のキーは出さない。

【2026-11-13】以前は Object.keys/values/entries/assign が配列の添字しか見ておらず(entries は添字も 見ておらず常に空)、Object.keys("abc".match(/b/)) に index・input・groups が出なかった。