Skip to content

[RFC]: add array/base/pluck #14

Open
stdlib-js/stdlib
#5376
@kgryte

Description

@kgryte

This is similar to utils/pluck; however, we want to elide input argument validation, add support accessor arrays, and add support for an assign API.

Signature:

pluck( x, prop )
pluck.assign( x, prop, out, stride, offset )

Example usage:

var x = [
    {
        'a': 1
    },
    {
        'a': 2
    },
    {
        'a': 3
    }
];

var y = pluck( x, 'a' );
// returns [ 1, 2, 3 ]

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

Metadata

Metadata

Assignees

Labels

FeatureTask to add a new feature.difficulty: 1Low degree of difficulty. Should be straightforward to implement and/or resolve.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