{"action":"created","issue":{"url":"https://api.github.com/repos/flitbit/diff/issues/36","labels_url":"https://api.github.com/repos/flitbit/diff/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/flitbit/diff/issues/36/comments","events_url":"https://api.github.com/repos/flitbit/diff/issues/36/events","html_url":"https://github.com/flitbit/diff/pull/36","id":54539127,"number":36,"title":"Stricter type checking among `object` types","user":{"login":"drinks","id":72645,"avatar_url":"https://avatars.githubusercontent.com/u/72645?v=3","gravatar_id":"","url":"https://api.github.com/users/drinks","html_url":"https://github.com/drinks","followers_url":"https://api.github.com/users/drinks/followers","following_url":"https://api.github.com/users/drinks/following{/other_user}","gists_url":"https://api.github.com/users/drinks/gists{/gist_id}","starred_url":"https://api.github.com/users/drinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drinks/subscriptions","organizations_url":"https://api.github.com/users/drinks/orgs","repos_url":"https://api.github.com/users/drinks/repos","events_url":"https://api.github.com/users/drinks/events{/privacy}","received_events_url":"https://api.github.com/users/drinks/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-16T04:38:26Z","updated_at":"2015-01-16T16:10:21Z","closed_at":"2015-01-16T15:45:05Z","pull_request":{"url":"https://api.github.com/repos/flitbit/diff/pulls/36","html_url":"https://github.com/flitbit/diff/pull/36","diff_url":"https://github.com/flitbit/diff/pull/36.diff","patch_url":"https://github.com/flitbit/diff/pull/36.patch"},"body":"Hi there! I've been getting some unexpected results when types change between different flavors of `object`:\r\n\r\n```javascript\r\nvar dd = require('deep-diff');\r\n\r\ndd([], {})\r\n// => undefined\r\n\r\ndd({}, /surely these are different!/gi)\r\n// => undefined\r\n\r\ndd(['a','b','c'], {a:1, b:1, c:1})\r\n// => [ { kind: 'D',\r\n// =>    path: [ 0 ],\r\n// =>    lhs: 'a' },\r\n// =>  { kind: 'D',\r\n// =>    path: [ 1 ],\r\n// =>    lhs: 'b' },\r\n// =>  { kind: 'D',\r\n// =>    path: [ 2 ],\r\n// =>    lhs: 'c' } ]\r\n\r\ndd({a:1}, [1])\r\n// => [ { kind: 'D',\r\n// =>     path: [ 'a' ],\r\n// =>     lhs: 1 },\r\n// =>   { kind: 'N',\r\n// =>     path: [ '0' ],\r\n// =>     rhs: 1 } ]\r\n\r\n```\r\n\r\nHere's a patch that inspects `object`s a little more closely and reports type changes such as `{} -> []` as kind `E`.\r\n"},"comment":{"url":"https://api.github.com/repos/flitbit/diff/issues/comments/70276475","html_url":"https://github.com/flitbit/diff/pull/36#issuecomment-70276475","issue_url":"https://api.github.com/repos/flitbit/diff/issues/36","id":70276475,"user":{"login":"flitbit","id":1213114,"avatar_url":"https://avatars.githubusercontent.com/u/1213114?v=3","gravatar_id":"","url":"https://api.github.com/users/flitbit","html_url":"https://github.com/flitbit","followers_url":"https://api.github.com/users/flitbit/followers","following_url":"https://api.github.com/users/flitbit/following{/other_user}","gists_url":"https://api.github.com/users/flitbit/gists{/gist_id}","starred_url":"https://api.github.com/users/flitbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flitbit/subscriptions","organizations_url":"https://api.github.com/users/flitbit/orgs","repos_url":"https://api.github.com/users/flitbit/repos","events_url":"https://api.github.com/users/flitbit/events{/privacy}","received_events_url":"https://api.github.com/users/flitbit/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T16:10:21Z","updated_at":"2015-01-16T16:10:21Z","body":"Sure thing; It will be a few days before I update the release packages."}}