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

NameDescription
theA machine
this_A reference to the instance to test
keyThe 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)));