defined
Description
Gibt false zurück, wenn das übergebene Argument undefiniert ist, andernfalls true
defined: (param: any) => boolean
Parameters
param- (required) any - eine Eigenschaft eines Objekts, die geprüft werden soll
Returns
state- (boolean) - false, wenn das übergebene Argument undefiniert ist, andernfalls true
Example
// überprüft, ob die Eigenschaft "custom_property" im task-Objekt existiert
if(gantt.defined(task.custom_property)){
// ..
};
Change log
- hinzugefügt in Version 4.0
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.