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

501
Views
Array.push arroja un error No se puede agregar la propiedad 0, el objeto no es extensible

Estoy un poco atascado con algo (espero que sea simple), tal vez alguien aquí pueda echar un vistazo y señalar esa cosa simple que me falta. Estoy obteniendo algunos objetos y quiero empujarlos a una matriz. al presionar, aparece el error: Cannot add property 0, object is not extensible

 if (keysLength > 0) { //@ts-ignore let Arr = []; for(let x = 0; x < keysLength; x++) { let keys = "item" + x; // getting all the items from storage // and merging into 1 array chrome.storage.sync.get([keys], function(result) { // err: Cannot add property 0, object is not extensible Arr.push(result[keys]); }); if (x === keysLength-1){ console.log(Arr) } } }

apreciar el tiempo

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!