FE/Javascript

[ JAVASCRIPT ] Catch Last Iteration

HEON.D 2021. 3. 5. 17:09
res.forEach((study, index) => {
   if (index === res.length - 1) {
      return true;
   }
})