Skip to content

parse("constructor") returns {r:undefined,g:undefined,c:undefined} #7

@tolmasky

Description

@tolmasky

It seems that its picking up everything in the prototype. Changing colors[c.toLowerCase()] to if (Object.prototype.hasOwnProperty(colors, c.toLowerCase()) .... should do the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions