Skip to main content

own_enum_entries

Function own_enum_entries 

Source
pub fn own_enum_entries(v: &Value) -> Result<Vec<(String, Value)>, String>
Expand description

(key, value) for every own enumerable string key — spread / Object.assign / Object.entries / JSON.stringify. Each value is read through the get trap, as the spec’s CreateDataPropertyOrThrow(…, Get(from, key)) requires.