Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

168
Vistas
what is this less/no documented IIFE in javascript

I know what this code will do:

( (...args)=>console.log(args) )( [1,2,3], [4,5,6,7,8] )

But I have bumped into another use, and I couldn't find what this means because I have no idea what to name it. I checked MDN's IIFE page, but it has no mention of this.

( 0, (...args)=>console.log(args) )( [1,2,3], [4,5,6,7,8] )

I tried to use different numbers and a function as that first argument but the result is not affected. Then I tried to put a variable in there and used it in the second fine (the function) but it polluted the global.


original code I saw is in @Jest/core's TestScheduler.js file.

(0, _testResult().addResult)(aggregatedResults, testResult);
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda