Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
inglor
on Feb 9, 2014
|
parent
|
context
|
favorite
| on:
Why You Should Always Use === and Other Bad Practi...
Should probably do `.length` to detect it's iterable and not do a type check since that's an anti pattern anyway.
underwater
on Feb 10, 2014
[–]
That would happily accept and iterate over a string, which wouldn't be desirable.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: