Skip to main content

spread_object

Function spread_object 

Source
pub fn spread_object<A: IVm>(
    items: impl IntoIterator<Item = ObjectItem<A>>,
) -> Any<A>
Expand description

The object an entry list holds, a spread among them: each property and each spread’s entries appended in order to the raw property list, so a later key overwrites an earlier one’s value and keeps its position, as JavaScript’s does, through the view every reader takes (Object::own_entries). An object spread never throws, so this is a value, not a Result.