Function Machine.has

Tests whether an instance has a property corresponding to a particular ECMAScript property name.

bool has (
  const(xs.bindings.xsSlotRecord) this_,
  short id
);

This method is similar to the ECMAScript in keyword.

Parameters

NameDescription
this_A reference to the instance to test
idThe identifier of the property to test

Returns

true if the instance has the property, false otherwise