[RFC]: add @stdlib/array/base/take-map
#1321
Labels
Accepted
RFC feature request which has been accepted.
difficulty: 2
May require some initial design or R&D, but should be straightforward to resolve and/or implement.
Feature
Issue or pull request for adding a new feature.
Good First Issue
A good first issue for new contributors!
JavaScript
Issue involves or relates to JavaScript.
priority: Low
Low priority concern or feature request.
RFC
Request for comments. Feature requests and proposed changes.
Utilities
Issue or pull request concerning general utilities.
Description
This RFC proposes adding the package
@stdlib/array/base/take-map
.The package should be structured similarly to
@stdlib/array/base/take
.The package should expose an API having the same signature as
take
, with the addition ofclbk
andthisArg
arguments.The callback function should map each selected value specified by
indices
to the output value.In short, this package combines
take
andmap
into a single API call.Package:
@stdlib/array/base/take-map
Alias:
takeMap
Related Issues
None.
Questions
No.
Other
No.
Checklist
RFC:
.The text was updated successfully, but these errors were encountered: