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

Use hasOwnProperty to check for object properties #116

Merged
merged 1 commit into from
Mar 6, 2017

Commits on Mar 6, 2017

  1. Use hasOwnProperty to check for object properties

    I've been doing some performance profiling of Aphrodite and noticed that
    even after updating to inline-style-prefixer 3.0.0, the prefixValue
    function was still more expensive than I expected. After looking at the
    CPU profile and the lines highlighted here, it seems that checking for
    the existence of these object properties using `foo[bar]` is much more
    expensive than checking using `foo.hasOwnProperty(bar)`.
    lencioni committed Mar 6, 2017
    Configuration menu
    Copy the full SHA
    c1cde7a View commit details
    Browse the repository at this point in the history