a8m / a8m/obj-parse

Does this support arrays?

Offen
#4 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
3
Forks
1
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I was wondering if it was possible to use this lib with arrays inside objects, potentially by detecting type of the values and a number in the key say 'profile.photos.3.title'
Also if it does support getter and setter for existing items does it support setting a new item using Array.push
And finally if it does also support that, implementing some kind of way to find an object in an array using a specific language findIndex like so
'profile.photos.{"id"="aFf391j"}.title'

I'll send in a PR if I find a way to implement something like that

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.