Documentation
Reference
2.1.56 (current version)
collection
interactivityModel
Interfaces

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:

ParameterDefault valueDescription
module*
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: String

Module

* Mandatory parameter/option.

Example:

if (ymaps.modules.isDefined('plugin.CustomModule')) {
    ymaps.modules.require(['plugin.CustomModule'])
        .spread(
            function (CustomModule) {
                // ...
            }
        );
}