-
Notifications
You must be signed in to change notification settings - Fork 680
Add a .map function #2201
Copy link
Copy link
Closed
Labels
STATE: StaleAn outdated issue that will be automatically closed by the Stale bot.An outdated issue that will be automatically closed by the Stale bot.TYPE: enhancementThe accepted proposal for future implementation.The accepted proposal for future implementation.
Metadata
Metadata
Assignees
Labels
STATE: StaleAn outdated issue that will be automatically closed by the Stale bot.An outdated issue that will be automatically closed by the Stale bot.TYPE: enhancementThe accepted proposal for future implementation.The accepted proposal for future implementation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Are you requesting a feature or reporting a bug?
Feature
What is the current behavior?
N/A
What is the expected behavior?
Generic map function that allows you to map over a Selector. This could be useful with creating assertions that deal with predefined/ expected lists vs actual lists created by the DOM. Since there is already a .filter function, and people always talk about map/filter/reduce being together, this seems like a natural addition to the Selector API.
How would you reproduce the current behavior (if this is a bug)?
N/A
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your