Skip to main content

wrapped_primitive

Function wrapped_primitive 

Source
pub fn wrapped_primitive(v: &Value) -> Option<Value>
Expand description

The primitive a wrapper object boxes (new String("a") → "a"), or None for every other value. The slot is a hidden @@primitive own property — the same @@ marker convention the engine already uses for internal state, so it stays out of Object.keys and JSON.stringify on its own.