Skip to content

allow queryLayers to be array-like #128

@missinglink

Description

@missinglink

This line should be rewritten in such a way that it accepts any input which is 'array-like' (ie. can be destructured with the spread operator) such that either an array or a set may be passed in.

I believe the only thing currently preventing that is the check for .size

const searchLayers = (queryLayers && queryLayers.size) ? new Set(_.intersection([...displayLayers], [...queryLayers])) : displayLayers

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions