zenika-open-source/immutadot

Prop list navigation in get

nlepage opened this issue ยท 0 comments

Description

get doesn't support prop list navigation

Only for bugs ๐Ÿ›

Version : 2.0.0-alpha.1

Expected behavior

get({ i18n: { languages: [{key:'en', label:'English'}, {key:'fr', label:'French'}] } }, 'i18n.languages[:].{*}')
// -> [['en', 'English'], ['fr', 'French']]

Actual behavior

get({ i18n: { languages: [{key:'en', label:'English'}, {key:'fr', label:'French'}] } }, 'i18n.languages[-1:].{*}')
// -> [[FinalNav {value: "en"}, FinalNav {value: "English"}], [FinalNav {value: "fr"}, FinalNav {value: "French"}]]