Skip to content

JSON: Replace value.hasOwnProperty with Object.prototype.hasOwnProperty.call #116

@robinheghan

Description

@robinheghan

Replace value.hasOwnProperty with Object.prototype.hasOwnProperty.call in the JSON module

if (value.hasOwnProperty(key)) {

This makes it harder for someone to use hasOwnProperty for something other than it's intended purpose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions