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

I like the trim() functions that accept a list (of some form) for 'characters to remove'. It is far more deterministic (better worse case outcome) to follow this approach than it is to run a regexp.



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

Search: