Skip to content

[RFC]: add array/base/for-each #17

@kgryte

Description

@kgryte

Add functional interface for calling a provided callback once for each element in a provided array-like object.

If an input array-like object has a forEach 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

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.❌ No AINot allowed to use AI.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions