My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

What does this code do?

Default profile photo
Anonymous
·May 11, 2020

I can understand this code:

localConnection.onicecandidate = e => {
   if (e.candidate) {
     remoteConnection.addIceCandidate(e.candidate)
   }
}

But what does this code do?

localConnection.onicecandidate = e => !e.candidate
        || remoteConnection.addIceCandidate(e.candidate)

Sorry for the noob question!