{"action":"opened","issue":{"url":"https://api.github.com/repos/airbnb/javascript/issues/797","repository_url":"https://api.github.com/repos/airbnb/javascript","labels_url":"https://api.github.com/repos/airbnb/javascript/issues/797/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/javascript/issues/797/comments","events_url":"https://api.github.com/repos/airbnb/javascript/issues/797/events","html_url":"https://github.com/airbnb/javascript/issues/797","id":143395678,"number":797,"title":"About no-nested-ternary","user":{"login":"testerez","id":815236,"avatar_url":"https://avatars.githubusercontent.com/u/815236?v=3","gravatar_id":"","url":"https://api.github.com/users/testerez","html_url":"https://github.com/testerez","followers_url":"https://api.github.com/users/testerez/followers","following_url":"https://api.github.com/users/testerez/following{/other_user}","gists_url":"https://api.github.com/users/testerez/gists{/gist_id}","starred_url":"https://api.github.com/users/testerez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testerez/subscriptions","organizations_url":"https://api.github.com/users/testerez/orgs","repos_url":"https://api.github.com/users/testerez/repos","events_url":"https://api.github.com/users/testerez/events{/privacy}","received_events_url":"https://api.github.com/users/testerez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-25T00:40:05Z","updated_at":"2016-03-25T00:40:05Z","closed_at":null,"body":"I sometimes use the following syntax and find it elegant and useful.\r\nWhat do you think about it? And What do you suggest to replace it?\r\n```\r\nvar foo =\r\n  condition1 ? a :\r\n  condition2 ? b :\r\n  condition3 ? c :\r\n  d;\r\n```"}}