should dotProp.has({foo: undefined}, 'foo') be true ?
qiu8310 opened this issue · comments
Zhonglei Qiu commented
var a = {foo: undefined}
console.log(dotProp.has(a, 'foo')) // false
console.log('foo' in a) // true
console.log(a.hasOwnProperty('foo')) // true
Steve Mao commented
Sindre Sorhus commented
Yes, that's a bug.
Zhonglei Qiu commented
I wrote a different version libs/lang/DotProp.js, and test file libs/lang/test/__DotProp.js.
Would you like to merge it?