{"action":"created","issue":{"url":"https://api.github.com/repos/sasaplus1/deepcopy.js/issues/8","labels_url":"https://api.github.com/repos/sasaplus1/deepcopy.js/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/sasaplus1/deepcopy.js/issues/8/comments","events_url":"https://api.github.com/repos/sasaplus1/deepcopy.js/issues/8/events","html_url":"https://github.com/sasaplus1/deepcopy.js/issues/8","id":124847537,"number":8,"title":"Cloned object is === to base","user":{"login":"kuraga","id":1063219,"avatar_url":"https://avatars.githubusercontent.com/u/1063219?v=3","gravatar_id":"","url":"https://api.github.com/users/kuraga","html_url":"https://github.com/kuraga","followers_url":"https://api.github.com/users/kuraga/followers","following_url":"https://api.github.com/users/kuraga/following{/other_user}","gists_url":"https://api.github.com/users/kuraga/gists{/gist_id}","starred_url":"https://api.github.com/users/kuraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuraga/subscriptions","organizations_url":"https://api.github.com/users/kuraga/orgs","repos_url":"https://api.github.com/users/kuraga/repos","events_url":"https://api.github.com/users/kuraga/events{/privacy}","received_events_url":"https://api.github.com/users/kuraga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-04T21:51:39Z","updated_at":"2016-01-05T01:46:25Z","closed_at":null,"body":"@sasaplus1 Good day!\r\n\r\nHow is it possible? Thanks.\r\n\r\n```js\r\n'use strict';\r\n\r\nvar deepcopy = require('deepcopy');\r\nvar h = require('virtual-dom/h');\r\n\r\nvar base, copy;\r\n\r\nbase = h('span');\r\nconsole.log(typeof base);  // 'object'\r\n\r\ncopy = deepcopy(base);\r\nconsole.log(base === copy);  // true\r\n```"},"comment":{"url":"https://api.github.com/repos/sasaplus1/deepcopy.js/issues/comments/168866532","html_url":"https://github.com/sasaplus1/deepcopy.js/issues/8#issuecomment-168866532","issue_url":"https://api.github.com/repos/sasaplus1/deepcopy.js/issues/8","id":168866532,"user":{"login":"sasaplus1","id":309466,"avatar_url":"https://avatars.githubusercontent.com/u/309466?v=3","gravatar_id":"","url":"https://api.github.com/users/sasaplus1","html_url":"https://github.com/sasaplus1","followers_url":"https://api.github.com/users/sasaplus1/followers","following_url":"https://api.github.com/users/sasaplus1/following{/other_user}","gists_url":"https://api.github.com/users/sasaplus1/gists{/gist_id}","starred_url":"https://api.github.com/users/sasaplus1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sasaplus1/subscriptions","organizations_url":"https://api.github.com/users/sasaplus1/orgs","repos_url":"https://api.github.com/users/sasaplus1/repos","events_url":"https://api.github.com/users/sasaplus1/events{/privacy}","received_events_url":"https://api.github.com/users/sasaplus1/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T01:46:25Z","updated_at":"2016-01-05T01:46:25Z","body":"```js\r\n'use strict';\r\n\r\nvar deepcopy = require('deepcopy'),\r\n    h = require('virtual-dom/h'),\r\n    VNode = require('virtual-dom/vnode/vnode'),\r\n    isVNode = require('virtual-dom/vnode/is-vnode');\r\n\r\nvar base = h('span');\r\n\r\nvar copy = deepcopy(base, function(target) {\r\n  if (isVNode(target)) {\r\n    return new VNode(\r\n      target.tagName,\r\n      target.properties,\r\n      target.children,\r\n      target.key,\r\n      target.namespace\r\n    );\r\n  }\r\n});\r\n\r\nconsole.log(copy === base);\r\nconsole.log(copy);\r\n```"}}