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

103
Views
assign or refer one array element to another array elements

For example I have three arrays:

const a = ["eatables", "electronics", "automobiles"];
const b = ["fruits", "vegetables", "cars"];
const c = ["apple", "orange", "BMW", "iPhone", "Ericson", "tomatoes", "potatoes"];

What I want is that "eatables" element should refer to the "fruits" and "vegetables" in array b.

Further, "fruits" element in array b should refer all fruits in array c. Likewise, "cars" should refer to all of the cars inside array c.

How can I achieve this ? So that once the user choose eatables from array a, the "fruits" and "vegetables" get render to the page and so on.

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!