defined

returns false if the provided argument is undefined, otherwise true

boolean defined(object event);
eventobjectthe object that should be checked
booleanfalse if the provided argument is undefined, otherwise true

Example

// check if the "custom_property" property is defined for the event object
if(scheduler.defined(event.custom_property)){
  // ..
};

Change log

added in version 6.0

Back to top