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

excludeKeys option does not treat nested keys correctly #70

Open
skarbovskiy opened this issue Sep 12, 2018 · 0 comments
Open

excludeKeys option does not treat nested keys correctly #70

skarbovskiy opened this issue Sep 12, 2018 · 0 comments

Comments

@skarbovskiy
Copy link
Contributor

{user: {"name":"bob", cookie: 1}, cookie: 'data to skip on hashing'}
hash(data, { excludeKeys: function (key) {
    return key === 'cookie';
})

will result in skipping both root cookie and user.cookie.

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

No branches or pull requests

1 participant