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

   :3,$s/\./?./g
Solves all your problems without having to think.


periods could be null. So you would need to optional chain the array access also.




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

Search: