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

263
Views
¿Cómo resolver el error de valor de flecha mal formado?

tengo esta funcion:

 const removeChatTyping = (data) => { getTypingMessages(data).fadeOut(function () { $(this).remove(); }); }

No necesito la parte de "desvanecimiento", así que la eliminé así:

 const removeChatTyping = (data) => { getTypingMessages(data) => { $(this).remove(); }; }

pero me sale un error que dice flecha malformada. ¿Cómo puedo tomar la parte de desvanecimiento sin problemas?

Agradecería cualquier respuesta que pueda llevarme a resolver esto.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Si desea eliminarlo inmediatamente cuando se llama a la función, entonces no necesita una devolución de llamada (o intento de devolución de llamada), simplemente llame a .remove() inmediatamente.

 const removeChatTyping = (data) => { getTypingMessages(data); $(this).remove(); }
about 4 years ago · Juan Pablo Isaza Report
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!