Skip to content
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

New type number #7

Merged
merged 5 commits into from
Feb 14, 2016
Merged

New type number #7

merged 5 commits into from
Feb 14, 2016

Conversation

lrlna
Copy link
Member

@lrlna lrlna commented Feb 14, 2016

This PR builds on top of @maxrimue #5 ; I wasn't able to push to his fork, so creating a new one.

Summary: checks if value is not a number and assigns a NaN.

@lrlna lrlna mentioned this pull request Feb 14, 2016
else if (flags.arrays && flags.arrays[key]) type = 'array'

return type
}

function isNumber (x) {
if (flags.numbers && flags.numbers[x] && !isNaN(x)) return true
Copy link
Member

Choose a reason for hiding this comment

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

Can we nuke this line? I'm pretty sure it's not having an effect.

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

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

Successfully merging this pull request may close these issues.

3 participants