modules.isDefined
Static function.
Checking the module's availability by name.
Returns true if the module is defined, false if not.
{ Boolean } modules.isDefined(module)
Parameters:
Parameter |
Default value |
Description |
ā |
Type: String Module |
* Mandatory parameter/option.
Example:
if (ymaps.modules.isDefined('plugin.CustomModule')) {
ymaps.modules.require(['plugin.CustomModule'])
.spread(
function (CustomModule) {
// ...
}
);
}
Mandatory parameter/option.