Hacker News new | past | comments | ask | show | jobs | submit login

That hack isn't guaranteed to work with long lists, since the standard allows a fixed limit on argument count. For example, in Node 12:

  > Math.max(..._.range(0, 1000000))
  Thrown:
  RangeError: Maximum call stack size exceeded



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: