exiftool.js icon indicating copy to clipboard operation
exiftool.js copied to clipboard

why do you use "!!" ?

Open vsimko opened this issue 7 years ago • 1 comments

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

vsimko avatar Oct 05 '17 07:10 vsimko

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.

mattburns avatar Oct 05 '17 11:10 mattburns