exiftool.js
exiftool.js copied to clipboard
why do you use "!!" ?
https://github.com/mattburns/exiftool.js/blob/24361008c35ab8434fc21e017687a9e76e0ed3b4/exiftool.js#L678-L680
why not just his ?
function imageHasBeenScanned(oImg) {
return oImg.imageScanned
}
same for: https://github.com/mattburns/exiftool.js/blob/24361008c35ab8434fc21e017687a9e76e0ed3b4/exiftool.js#L674-L676
Hmm, inherited code I'm afraid. It's a (pretty ugly) way to ensure something is boolean (or coerce an object into a boolean). I'm not attached to it so if the code still behaves without it I'm happy.