11 lines
152 B
JavaScript
11 lines
152 B
JavaScript
const foo = {}
|
|
|
|
foo.bar = function () {
|
|
return delete foo.bar.baz && delete foo.bar
|
|
}
|
|
|
|
foo.bar.baz = function () {
|
|
return 3
|
|
}
|
|
|
|
module.exports = foo
|