working on a page basic example, I found this piece of code :
function hasGetUserMedia() {
return !!(navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia);
}
and been astonished by : return!!(exp)
Can someone explain this '!!' ? is it for the line break ? or to avoid a return value ?
I could not find usage nor info about this kind of (weird) syntax
thanks !