pub fn remove(map: &mut Map, property: &str) -> Dynamic {
        if !map.is_empty() {
            map.remove(property).unwrap_or_else(|| Dynamic::UNIT)
        } else {
            Dynamic::UNIT
        }
    }
/// Remove any property of the specified `name` from the object map, returning its value.
///
/// If the property does not exist, `()` is returned.
///
/// # Example
///
/// ```rhai
/// let m = #{a:1, b:2, c:3};
///
/// let x = m.remove("b");
///
/// print(x);       // prints 2
///
/// print(m);       // prints "#{a:1, c:3}"
/// ```
Remove any property of the specified `name` from the object map, returning its value.
If the property does not exist, `()` is returned.
Remove any property of the specified ` name ` from the object map returning its value . If the property does not exist ` () ` is returned .
pub fn remove(map: &mut Map, property: &str) -> Dynamic {
        if !map.is_empty() {
            map.remove(property).unwrap_or_else(|| Dynamic::UNIT)
        } else {
            Dynamic::UNIT
        }
    }
pub fn remove ( map : & mut Map , property : & str ) -> Dynamic { if ! map . is_empty ( ) { map . remove ( property ) . unwrap_or_else ( | | Dynamic :: UNIT ) } else { Dynamic :: UNIT } }
Remove any property of the specified `name` from the object map, returning its value.
Remove any property of the specified ` name ` from the object map returning its value .
map
&mut Map
property
&str
example




print(x);       // prints 2


print ( x ) ; // prints 2