{"action":"closed","issue":{"url":"https://api.github.com/repos/benjamine/jsondiffpatch/issues/117","repository_url":"https://api.github.com/repos/benjamine/jsondiffpatch","labels_url":"https://api.github.com/repos/benjamine/jsondiffpatch/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/benjamine/jsondiffpatch/issues/117/comments","events_url":"https://api.github.com/repos/benjamine/jsondiffpatch/issues/117/events","html_url":"https://github.com/benjamine/jsondiffpatch/issues/117","id":117558889,"number":117,"title":"Array diff includes extensions to the Array prototype ","user":{"login":"AlexMedia","id":948700,"avatar_url":"https://avatars.githubusercontent.com/u/948700?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexMedia","html_url":"https://github.com/AlexMedia","followers_url":"https://api.github.com/users/AlexMedia/followers","following_url":"https://api.github.com/users/AlexMedia/following{/other_user}","gists_url":"https://api.github.com/users/AlexMedia/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexMedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexMedia/subscriptions","organizations_url":"https://api.github.com/users/AlexMedia/orgs","repos_url":"https://api.github.com/users/AlexMedia/repos","events_url":"https://api.github.com/users/AlexMedia/events{/privacy}","received_events_url":"https://api.github.com/users/AlexMedia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-11-18T10:33:26Z","updated_at":"2016-09-12T21:50:14Z","closed_at":"2016-09-12T21:50:14Z","body":"I have a project where a few functions have been added to `Array.prototype`. When I have two objects that I want to run a diff against, jsondiffpatch returns me the array with a couple of `NaN` keys added to the bottom, without any values. The amount of `NaN`s is equal to the amount of functions which were added to the prototype.\r\n\r\nI made a sample JSFiddle which [can be viewed here](http://jsfiddle.net/AlexMedia/h0y8hwe6/).\r\n\r\nI would suggest that these items do not show up in the diff, as these functions are not part of the array but instead of its prototype. I believe that using `array.hasOwnProperty(key)` could be used to exclude prototype extensions, but I'm still trying to figure out how array diffing works internally."}}
{"actor":{"display_login":"benjamine"}}