Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, you can do that in lambdas:

    > `${50}: ${[1,2,3].map(a => `${a+1}`)}`
    '50: 2,3,4'
Whether that's a good idea or clear code is another issue. But it's allowed.


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

Search: