default value isn't returned when accessing nonexistent obj property within array
mreinstein opened this issue · comments
Michael Reinstein commented
const obj = {
a: [
{ b: 'cool' }
]
}
const r = dotProp.get(obj, 'a.0.nonexistant', 'bleep')
expected: r === 'bleep'
actual: r === undefined
Michael Reinstein commented
I guess this is a subset of #71 so I'll just close in favor of that.