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

142
Views
How to suggest object Properties in JS?

Well, I'm building a library and there is a function that has two parameters (an element and an object). The object works as a "configurator" of the element and obviously its properties have already been declared, the user just needs to put the name of the specific property and the value he wants. The question is, how can a suggestion of the property name appear before typing the full name?

ex:

enter image description here

my code:

const h1 = document.querySelector("h1");
sudo(h1, {
  preReveal: "",

}); 

(in this case, I want to suggest preReveal)

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!