Function xsHasAt
Tests whether an instance has a property corresponding to a particular ECMAScript property key.
bool xsHasAt
(
scope xs .bindings .xsMachineRecord* the,
const(xs .bindings .xsSlotRecord) this_,
const(xs .bindings .xsSlotRecord) key
);
Parameters
| Name | Description |
|---|---|
| the | A machine |
| this_ | A reference to the instance to test |
| key | The key of the property to test |
Returns
true if the instance has the property, false otherwise
Examples
In ECMAScript:
if (7 in this)
In D:
if (xsHasAt(xsThis, xsInteger(7)));