In ActionScript 3, is there any convenient way of determining if an associative array (dictionary) has a particular key?
I need to perform additional logic if the key is missing. I could catch the undefined property
exception, but I'm hoping that can be my last resort.
var card:Object = {name:"Tom"};
trace("age" in card); // return false
trace("name" in card); // return true
Try this operator : "in"