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

Fix error in collectTypes method #343

Merged
merged 1 commit into from
Jul 17, 2019
Merged

Commits on Jul 16, 2019

  1. Fix error in collectTypes method

    `obj.hasOwnProperty` can sometimes be undefined even though `obj` is an actual object, see this conversation over in another repo for reference: domchristie/humps#35
    
    I am (somehow through a million hoops) running into this in my project, and their suggested fix of using `Object.prototype.hasOwnProperty.call(obj, key)` works beautifully and fixes my issue.
    Max Stoiber authored Jul 16, 2019
    Configuration menu
    Copy the full SHA
    2dc15b6 View commit details
    Browse the repository at this point in the history