Unwrap a wrapped thing.
<Type>
.unwrap()
None
Returns the wrapped thing.
This code shows an example using unwrap():
// Create a Type to return just an email field.
set_type('_Email', {email: 'str'});
// Store a thing
.joente = {
name: 'Jeroen van der Heijden',
email: 'jeroen@cesbit.com',
gender: 'male',
};
// Wrap `joente` with the `_Email` type.
.w = .joente.wrap('_Email');
// Return the original `thing`
.w.unwrap();
Example return value in JSON format
{
"#": 42,
"name": "Jeroen van der Heijden",
"email": "jeroen@cesbit.com",
"gender": "male"
}