Class: SpecialType

barejs.decl~SpecialType()

new SpecialType()

Internal class for decl, serving as a base class for Interface and Enum. Does not have Object.prototype in its prototype chain, so objects deriving from SpecialType are not instanceof Object.

Source:

Methods

hasOwnProperty(_name) → {boolean}

A SpecialType is not instanceof Object, but does have the Object.prototype.hasOwnProperty method.

Parameters:
Name Type Description
_name string

The name of the property to check

Source:
Returns:

True if the object has a direct property with _name, false otherwise.

Type
boolean