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

95
Views
Using Set in javascript to store a tuple

I have a scenario in which I have to store a tuple (x,y,z) in a set. As javascript doesn't have a tuple, I decided to store it in the set like [1,2,0], but it allows me to add this same
element again to the set and show the size as 2, whereas ideally, it should not add it. How can I achieve default Set behavior or some alternate way to represent the above information

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!