Function JSObject.hasProperty

Tests whether this Object has a given property.

bool hasProperty (
  string key
);