Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda