'Javascript object not adding new key value pair

Javascript object not adding new key value pair of sample and namespace. Empty object is return

const { lruCaches } = state
console.log('here123456')
lruCaches[namespace] = new LruCache({ maxSize: 500 })
lruCaches.sample = 89
console.log({ lruCaches }, '12345')

Output

here123456

{lruCaches: {…}}
lruCaches:
asMutable: ƒ asMutableObject(opts)
getIn: ƒ getIn(path, defaultValue)
merge: ƒ merge(other, config)
replace: ƒ objectReplace(value, config)
set: ƒ objectSet(property, value, config)
setIn: ƒ objectSetIn(path, value, config)
setPrototypeOf: ƒ ()
update: ƒ update(property, updater)
updateIn: ƒ updateIn(path, updater)
without: ƒ without(remove)
__immutable_invariants_hold: true
[[Prototype]]: Object
[[Prototype]]: Object


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source