Skip to content

why do you use "!!" ? #30

Description

@vsimko

exiftool.js/exiftool.js

Lines 678 to 680 in 2436100

function imageHasBeenScanned(oImg) {
return !!(oImg.imageScanned);
}

why not just his ?

        function imageHasBeenScanned(oImg) {
            return oImg.imageScanned
        }

same for:

exiftool.js/exiftool.js

Lines 674 to 676 in 2436100

function imageHasData(oImg) {
return !!(oImg.exifdata);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions