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

I think you misunderstand. It’s not that “any” data can be passed in. The options object is documented in every version. It’s just a place that lets future versions add named parameterd


IMO If a method take many parameters there is a chance that this methods have too many responsibility and can be cut into two methods.




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

Search: