Skip to content

[RFC]: add array/base/map #21

@kgryte

Description

@kgryte

Add functional interface for calling a provided callback once for each element in a provided array-like object and returning a new array with the returned results.

If an input array-like object has a map method, we should delegate to that; otherwise, we need to perform manual iteration, including support for accessor arrays.

Similar package: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/array/base/every-by

For this package, we should support an assign API to allow providing an output array.

Time estimate without AI: 3hrs
Time estimate with AI: 2hrs

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 2May require some initial design or R&D, but should be straightforward to resolve and/or implement.estimate: 2-4hrsTask which should take between 2 to 4 hours.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions