Skip to content

excludeKeys option does not treat nested keys correctly #70

@skarbovskiy

Description

@skarbovskiy
{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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions