pub fn has_own_prop(this: &Value, args: &[Value], _: &mut Interpreter) -> ResultValue {
    let prop = if args.is_empty() {
        None
    } else {
        from_value::<String>(args.get(0).expect("Cannot get object").clone()).ok()
    };
    Ok(to_value(
        prop.is_some() && this.get_prop(&prop.expect("Cannot get object")).is_some(),
    ))
}
/// Check if it has a property
Check if it has a property
Check if it has a property
pub fn has_own_prop(this: &Value, args: &[Value], _: &mut Interpreter) -> ResultValue {
    let prop = if args.is_empty() {
        None
    } else {
        from_value::<String>(args.get(0).expect("Cannot get object").clone()).ok()
    };
    Ok(to_value(
        prop.is_some() && this.get_prop(&prop.expect("Cannot get object")).is_some(),
    ))
}
pub fn has_own_prop ( this : & Value , args : & [ Value ] , _ : & mut Interpreter ) -> ResultValue { let prop = if args . is_empty ( ) { None } else { from_value :: < String > ( args . get ( 0 ) . expect ( " " ) . clone ( ) ) . ok ( ) } ; Ok ( to_value ( prop . is_some ( ) && this . get_prop ( & prop . expect ( " " ) ) . is_some ( ) , ) ) }
Check if it has a property
Check if it has a property
this
&Value
args
&mut Interpreter
this
&Value
args
&mut Interpreter