Skip to content Skip to sidebar Skip to footer

What Does If(file.is_image) Mean In Javascript?

And what would be the equivalent for sound?

Solution 1:

Sounds like somebody created a custom type and is_image is one of its members.

My guess would be that it is checking to see if the file is an image file and returning true if it is and false if it isn't.

Solution 2:

Javascript object file is defined somewhere in one of the scripts run by this certain page. And is_image is its member (most probably a Boolean property).

The statement actually means one of these:

  • if (file.is_image is defined at all) then do something or
  • if (file.is_image is true) then do something

Post a Comment for "What Does If(file.is_image) Mean In Javascript?"