{"action":"created","issue":{"url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode/issues/4","repository_url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode","labels_url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode/issues/4/comments","events_url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode/issues/4/events","html_url":"https://github.com/HowProgrammingWorks/TreeNode/issues/4","id":189385520,"number":4,"title":"Поиск по нативном дереву (Карпова, Черноус)","user":{"login":"tshemsedinov","id":4405297,"avatar_url":"https://avatars.githubusercontent.com/u/4405297?v=3","gravatar_id":"","url":"https://api.github.com/users/tshemsedinov","html_url":"https://github.com/tshemsedinov","followers_url":"https://api.github.com/users/tshemsedinov/followers","following_url":"https://api.github.com/users/tshemsedinov/following{/other_user}","gists_url":"https://api.github.com/users/tshemsedinov/gists{/gist_id}","starred_url":"https://api.github.com/users/tshemsedinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshemsedinov/subscriptions","organizations_url":"https://api.github.com/users/tshemsedinov/orgs","repos_url":"https://api.github.com/users/tshemsedinov/repos","events_url":"https://api.github.com/users/tshemsedinov/events{/privacy}","received_events_url":"https://api.github.com/users/tshemsedinov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-15T12:59:56Z","updated_at":"2016-12-27T00:28:51Z","closed_at":null,"body":"Пример нативного дерева тут:\r\nhttps://github.com/HowProgrammingWorks/TreeNode/blob/master/JavaScript/3-native.js\r\n```js\r\nlet tree = {\r\n  n3: [1, 2, 3],\r\n  n1: { n11: { name: 'Fish' }, n12: { name: 'Bird' }, n13: { name: 'Dog' } },\r\n  n2: { n21: { name: 'Horse' }, n22: { name: 'Mouse' } },\r\n  n3: { name: 'Developer', hands: 2 }\r\n};\r\n\r\n// Карпова\r\n// search(trre, query); // result: node (первый подходящий)\r\nsearch(trre, { name: 'Mouse' });\r\nsearch(trre, { name: 'Developer', hands: 2 });\r\n\r\n// Черноус\r\n// find(trre, nodeType, [nodeName]); // result: node (первый подходящий)\r\nfind(trre, 'object');\r\nfind(trre, 'object', 'n3');\r\n```\r\n@karpusik @sweetkaterina"},"comment":{"url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode/issues/comments/269251583","html_url":"https://github.com/HowProgrammingWorks/TreeNode/issues/4#issuecomment-269251583","issue_url":"https://api.github.com/repos/HowProgrammingWorks/TreeNode/issues/4","id":269251583,"user":{"login":"tshemsedinov","id":4405297,"avatar_url":"https://avatars.githubusercontent.com/u/4405297?v=3","gravatar_id":"","url":"https://api.github.com/users/tshemsedinov","html_url":"https://github.com/tshemsedinov","followers_url":"https://api.github.com/users/tshemsedinov/followers","following_url":"https://api.github.com/users/tshemsedinov/following{/other_user}","gists_url":"https://api.github.com/users/tshemsedinov/gists{/gist_id}","starred_url":"https://api.github.com/users/tshemsedinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tshemsedinov/subscriptions","organizations_url":"https://api.github.com/users/tshemsedinov/orgs","repos_url":"https://api.github.com/users/tshemsedinov/repos","events_url":"https://api.github.com/users/tshemsedinov/events{/privacy}","received_events_url":"https://api.github.com/users/tshemsedinov/received_events","type":"User","site_admin":false},"created_at":"2016-12-27T00:28:51Z","updated_at":"2016-12-27T00:28:51Z","body":"* Стиль кода: https://learn.javascript.ru/coding-style\r\n* Делайте коммиты в исходники, а не сюда"}}
{"actor":{"display_login":"tshemsedinov"}}