allow `queryLayers` to be array-like
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 32
- Forks
- 8
- Avg merge
- 13m
- Merged PRs (30d)
- 1
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open server/routes/pip_pelias.js at line 63, as linked in the issue, and inspect how queryLayers is checked before being used. Verify the change accepts both an array and a set, while preserving the existing behavior for array-like inputs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100