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
Name | Description |
---|---|
this_ | A reference to the instance to test |
id | The identifier of the property to test |
Returns
true
if the instance has the property, false
otherwise