caolan / caolan/highland

[feature request] object-path -like pluck

Open
#291 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
145
PR merge metrics
No merged PRs in 30d

Description

Object path has an incredibly useful way of retrieving data from complex object structures.

https://github.com/mariocasciaro/object-path

Would love to see an API like this:

```
_([{ foo: { bar: [1,2,3] }}])
.pluck('foo.bar.0')
.doto(_.log) // 1
```

Contributor guide

Open the contributing guide

Research direction

No repository files or tests are named. Start by reviewing the linked object-path project and Highland's existing pluck API, then compare them with the proposed example. Done means a path such as `foo.bar.0` can retrieve the nested value and produce `1` for the shown input.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.