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

164
Views
¿Por qué usar return para métodos que no necesitan un valor de retorno?

Cuando leí el código fuente, descubrí que el autor usará return donde no hay necesidad de usar return.

http-partido/nodo-portfinder

 exports.getPort = function (options, callback) { // code... return _async.eachSeries(exports._defaultHosts, function(host, next) { // code ... return next(); } }

¿Cuál es el propósito o la necesidad de este uso?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Lo siguiente es probablemente una promesa. Tal vez en su código no se use (no then / catch), pero podría (y debería) haber algo.

En caso de que no se haya devuelto la promesa, no hay forma de detectar errores o realizar llamadas asíncronas secuenciales.

about 4 years ago · Santiago Trujillo 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!