{"comment":{"url":"https://api.github.com/repos/yegemberdin/n17r-works/comments/29620425","html_url":"https://github.com/yegemberdin/n17r-works/commit/6e184daa1139cd47a44822aa104eeea0131afdfd#commitcomment-29620425","id":29620425,"node_id":"MDEzOkNvbW1pdENvbW1lbnQyOTYyMDQyNQ==","user":{"login":"yenbekbay","id":10968765,"node_id":"MDQ6VXNlcjEwOTY4NzY1","avatar_url":"https://avatars1.githubusercontent.com/u/10968765?v=4","gravatar_id":"","url":"https://api.github.com/users/yenbekbay","html_url":"https://github.com/yenbekbay","followers_url":"https://api.github.com/users/yenbekbay/followers","following_url":"https://api.github.com/users/yenbekbay/following{/other_user}","gists_url":"https://api.github.com/users/yenbekbay/gists{/gist_id}","starred_url":"https://api.github.com/users/yenbekbay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenbekbay/subscriptions","organizations_url":"https://api.github.com/users/yenbekbay/orgs","repos_url":"https://api.github.com/users/yenbekbay/repos","events_url":"https://api.github.com/users/yenbekbay/events{/privacy}","received_events_url":"https://api.github.com/users/yenbekbay/received_events","type":"User","site_admin":false},"position":11,"line":11,"path":"splitwise/components/ChosenFriendModal.js","commit_id":"6e184daa1139cd47a44822aa104eeea0131afdfd","created_at":"2018-07-06T12:04:29Z","updated_at":"2018-07-06T12:04:29Z","author_association":"NONE","body":"Я уже писал про это раньше. Лучше было бы это написать как:\r\n\r\n```\r\nconst formattedEvents = events.map(event => ({\r\n  name: event.eventName,\r\n  money: event.money,\r\n}));\r\n```\r\n\r\nНо если честно, я вообще не вижу, зачем нужен создавать этот массив – почему нельзя просто передать `props.friend.events`?"}}
{"actor":{"display_login":"yenbekbay"}}