Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
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
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!