Skip to content

Use hasOwnProperty to skip prototype properties#1

Open
harmenjanssen wants to merge 1 commit intobetsol:masterfrom
harmenjanssen:patch-1
Open

Use hasOwnProperty to skip prototype properties#1
harmenjanssen wants to merge 1 commit intobetsol:masterfrom
harmenjanssen:patch-1

Conversation

@harmenjanssen
Copy link
Copy Markdown

I actually worked on a project where Array.property had some added functions. These ended up being adding to the router, resulting in confusing errors.
A quick hasOwnProperty() should do the trick.

I actually worked on a project where `Array.property` had some added functions. These ended up being adding to the router, resulting in confusing arrays.  
A quick `hasOwnProperty()` should do the trick.
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

Successfully merging this pull request may close these issues.

1 participant