-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm wondering about snippet of code you have used #1
Comments
I got the same question. Though I've already read about your thinking about one-line module, I really did not understand why an npm module is required for this thing. IMHO, it's more simple to just put it as |
@royling I'm not wondering about the one-line node module. The question here why: |
ok, got your point. |
This is what Lodash, Underscore and jQuery does. In modern environments You should not use Read more here: http://javascript.info/tutorial/type-detection |
Interesting, thanks for clearing it up. |
@sindresorhus Thanks, for clarifying the differences. |
I'm wondering about your reasons of using this mechanism instead of the regular
typeof
,instanceof
._Just I want to learn from you_, I've tried to search about differences my self but I got no thing.
The text was updated successfully, but these errors were encountered: