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
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
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!