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

101
Views
assigning all properties of object A to the ones with the same name as object B

I have two objects:

objectA = {
  valueOne: null,
  valueTwo: null
}
objectB = {
  valueZero: 'joe',
  valueOne 'john',
  valueTwo: 'jesse',
  valueThree: 'jessica',
  valueFour 'jojo'
}

I want two assign objectB property values to objectA properties but only those who have the same name. For example in our case objectA should become like this:

objectA = {
  valueOne: 'john',
  valueTwo: 'jesse'
}

How can I do it?

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!