Skip to content

Added few more types. #370

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

Closed
wants to merge 4 commits into from
Closed

Added few more types. #370

wants to merge 4 commits into from

Conversation

hemanth
Copy link
Contributor

@hemanth hemanth commented May 21, 2013

No description provided.

@hemanth
Copy link
Contributor Author

hemanth commented Jul 25, 2013

@scottgonzalez Bump! :)

@@ -28,6 +28,10 @@ typeof myArray; // "object" -- Careful!
typeof myString; // "string"
typeof myNumber; // "number"
typeof null; // "object" -- Careful!
typeof undefined; // "undefined"
typeof meh; // "undefined" -- undefined variable.
typeof /re/ // 'function'; -- Chrome and 'object' in Firefox.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we should just say "function" or "object" depending on environment. It's not great to call out 2 browsers when there are so many.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, since everything else is checking against a variable, we should follow that pattern here too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scottgonzalez Will rm the browser names and instead of /re/ it must be?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

myRegExp, and assigned above with everything else.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okies!

@hemanth
Copy link
Contributor Author

hemanth commented Aug 1, 2013

@scottgonzalez Made the suggested changes :)

@scottgonzalez
Copy link
Member

You're still not checking against a variable. Do you not see the discrepancy between this check and every other check? typeof myRegExp.

@@ -28,6 +28,10 @@ typeof myArray; // "object" -- Careful!
typeof myString; // "string"
typeof myNumber; // "number"
typeof null; // "object" -- Careful!
typeof undefined; // "undefined"
typeof meh; // "undefined" -- undefined variable.
typeof /myRegExp/; // 'function' or 'object' depending on environment.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update this to use double quotes to match the surrounding code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, sorry about that!

@scottgonzalez
Copy link
Member

You're still not defining the variable.

@hemanth
Copy link
Contributor Author

hemanth commented Aug 1, 2013

@scottgonzalez There is some confusion here....you want me to have myRegexp = /RE/ and then do a typeof myRegexp ? 👴

@scottgonzalez
Copy link
Member

Yes, exactly like all of the other checks. But I would use myRegExp not myRegexp so that it matches the constructor.

@hemanth
Copy link
Contributor Author

hemanth commented Aug 2, 2013

@scottgonzalez Duh! I don't know why I could not get it! Anyway have done it, thanks!

@scottgonzalez
Copy link
Member

Thanks, landed in 4df62ec.

@hemanth
Copy link
Contributor Author

hemanth commented Aug 2, 2013

@scottgonzalez Thanks, the page needs some more time to reflect?

@scottgonzalez
Copy link
Member

The site hasn't been deployed yet. We deploy on tags, not on every commit.

@hemanth
Copy link
Contributor Author

hemanth commented Aug 2, 2013

Oh, OK...I was under the notation that the md files are being picked up form the repo directly!

@scottgonzalez
Copy link
Member

Nope, we've got an awesomely complex deployment process. The sites are actually WordPress sites. We deploy to stage on every commit to master (just add a "stage." prefix to the domain), you're even automatically added to the list of contributors on that page.

@hemanth
Copy link
Contributor Author

hemanth commented Aug 3, 2013

@scottgonzalez Wow! Awesome 👍 Is the deployment process documented ?

@scottgonzalez
Copy link
Member

@hemanth
Copy link
Contributor Author

hemanth commented Aug 7, 2013

Kool, thank you! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants