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

122
Views
Hi i want to assign same key to my all the value which method i should be using there
const arr=[11,2222,33333,444444,55555,666666]

const obj1 = Object.assign({}, arr);

document.write(obj1)

output:-

{ '0': 11,
  '1': 2222,
  '2': 33333,
  '3': 444444,
  '4': 55555,
  '5': 666666 }

//Hi i want to assign same key to my all the value which method i should be using there.

about 4 years ago · Santiago Gelvez
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!