馃悶 Describe the Bug
Ember's get helper from @ember/helper can't handle accessing a value in an object when the key is a string with a dot in it.
E.g. applying {{ get obj 'some.key' }} to const obj = { 'some.key': 'some value' };will returnundefinedrather than'some value'`.
馃敩 Minimal Reproduction
See description above and this reproduction on latest Ember: Repro on Limber
馃槙 Actual Behavior
Ember's get helper returns undefined when attempting to access a key that is a string containing a period.
馃 Expected Behavior
I expect the get helper to handle accessing keys on objects just like vanilla JavaScript does. Barring that, I expect clear documentation about the different behavior.
馃實 Environment
馃悶 Describe the Bug
Ember's
gethelper from@ember/helpercan't handle accessing a value in an object when the key is a string with a dot in it.E.g. applying
{{ get obj 'some.key' }} toconst obj = { 'some.key': 'some value' };will returnundefinedrather than'some value'`.馃敩 Minimal Reproduction
See description above and this reproduction on latest Ember: Repro on Limber
馃槙 Actual Behavior
Ember's
gethelper returnsundefinedwhen attempting to access a key that is a string containing a period.馃 Expected Behavior
I expect the
gethelper to handle accessing keys on objects just like vanilla JavaScript does. Barring that, I expect clear documentation about the different behavior.馃實 Environment