MAIDR JavaScript API
    Preparing search index...

    Function declaresSelectors

    • Whether a layer declares any selectors at all.

      undefined, '' and [] all say "no selectors" -- the last two are what a producer emits when it found nothing to name -- so none of them is a declaration whose failure is worth reporting.

      Parameters

      • selectors: unknown

        The layer's selectors

      Returns boolean

      True when the layer names at least one element