a-synchronous / a-synchronous/rubico

`get` to stop supporting array paths

Aperta
#272 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
breaking enhancement
Lingua principale
JavaScript
Stelle
283
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Currently `get` is able to support array paths to access properties on an object

```
get({ a: { b: { c: 1 } } }, ['a', 'b', 'c']) // 1
```

However this blocks the eager API when trying to access indexed values on an array. It returns a function instead for the lazy API.

```
get([1, 2, 3], 0) // [Function: arg0Resolver]
```

We should amend the API to stop supporting array paths so we can eagerly access arrays.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.